Homebrew GRRLIB help

  • Thread starter Deleted User
  • Start date
  • Views 1,721
  • Replies 3
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

usptactical

Well-Known Member
Member
Joined
Apr 7, 2009
Messages
317
Trophies
0
XP
49
Country
United States
diego_pmc said:
I have some questions about GRRLIB_Printf():

• How can I use one of the default fonts? For example, when I use the standard Printf(), the font used is Lucida Console; how can I use this in GRRLIB_Printf()?
• How can I make GRRLIB_Printf() print the text after the text that is already present on the screen? In other words, if here already is some text present on the screen, how can I make GRRLIB_Printf() know which are the x and y coordinates it should use to print the piece of text I give it?

You have to create a tilemap image of the font - WiiBuilder can do this for you. There's also a width limit on the image (1024, if I recall) so depending on font size chosen, you need to split that into 2 (or more) lines. It might be easier for you to just use FreeTypeGX instead.

If you want to print after that line, you need to keep track of the total width/height of the previous word/line based on the sum of it's tiles.
 
D

Deleted User

Guest
OP
Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.
 
Last edited by ,

usptactical

Well-Known Member
Member
Joined
Apr 7, 2009
Messages
317
Trophies
0
XP
49
Country
United States
diego_pmc said:
Aha, thanks.
smile.gif

I want to ask another question: where can I get RGBA color codes that I can use with the GRRLIB functions? I've Googled (of course) but was not able to find any table that would give the the RGBA codes in the same format as the ones used in Sand Traps, for example, a game that also uses GRRLIB (e.g.: 0x0f0c03FF).

The colors are just basic hex codes plus alpha stored in a u32:

0xRRGGBBAA -> Red Green Blue Alpha

so 0x0f0c03FF would be Red 15 Green 12 Blue 3 Alpha 255
 

Similar threads

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • crafthp434 @ crafthp434:
    like i searched all folders
  • NinStar @ NinStar:
    are you using haxchi, tiramisu or aroma?
  • crafthp434 @ crafthp434:
    yeah
  • NinStar @ NinStar:
    no, I'm asking which one of them you are using
  • crafthp434 @ crafthp434:
    aroma
  • NinStar @ NinStar:
    in that case, there is no such thing as homebrew launcher for aroma
  • NinStar @ NinStar:
    you have to launch your homebrews directly from the wii u menu
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    BigOnYa @ BigOnYa: I'm downloading more ram for my hamster pc