Changes

4,911 bytes added ,  12:25, 27 February 2012
no edit summary
Line 6: Line 6:  
| author      = [[Team Twiizers]]
 
| author      = [[Team Twiizers]]
 
| licence    = Freeware
 
| licence    = Freeware
| version    = 1.0.8
+
| version    = 1.1.0
 
| download    = http://bootmii.org/download/
 
| download    = http://bootmii.org/download/
 
| website    = http://hbc.hackmii.com/
 
| website    = http://hbc.hackmii.com/
Line 157: Line 157:  
</arguments></source>
 
</arguments></source>
 
|-
 
|-
| no_ios_reload || does not reload IOS when launching an application. loaded applications inherit HBC's title id and full hardware access (AHBPROT) || <source lang="xml"><no_ios_reload/></source>
+
| ahb_access || Requests full hardware access (AHBPROT) || <source lang="xml"><ahb_access/></source>
 
|}
 
|}
   Line 245: Line 245:     
== Themes ==
 
== Themes ==
As of 1.0.7, The Homebrew Channel is capable of theming. The Image Files will be stored in a theme.zip, which can be executed like a boot.dol from the Homebrew Channel.
+
As of 1.0.7, The Homebrew Channel is capable of theming. The images and fonts are stored in a theme.zip, which can be executed like a boot.dol from the Homebrew Channel.
    
For a theme database and a "How to install" guide, check [[Homebrew_Channel/Themes|this page]].
 
For a theme database and a "How to install" guide, check [[Homebrew_Channel/Themes|this page]].
    
Further details on this can be found at [http://hackmii.com/2010/08/theming-the-homebrew-channel/ Hackmii].
 
Further details on this can be found at [http://hackmii.com/2010/08/theming-the-homebrew-channel/ Hackmii].
 +
 +
=== Fonts ===
 +
As for 1.1.0, you can use your own TrueType or OpenType fonts with The Homebrew Channel. You can assign a font, size, and color to individual GUI elements:
 +
 +
{| class="wikitable"
 +
|-
 +
! element ID !! meaning
 +
|-
 +
| label || Labels (background info, group headings, "Author" and "Version")
 +
|-
 +
| button || Buttons (and "radio" buttons)
 +
|-
 +
| button_desel || Radio buttons (not currently selected)
 +
|-
 +
| dlgtitle || Message box title
 +
|-
 +
| memo || Text box (description or message)
 +
|-
 +
| appname || Application name in main browser
 +
|-
 +
| appdesc || Application description in main browser
 +
|}
 +
 +
Each font can be specified using a &lt;font&gt; element inside the theme.xml file. You can specify the file, size, and color like this:
 +
 +
<source lang="xml">
 +
        <font target="memo,dlgtitle">
 +
                <file>foo.ttf</file>
 +
                <size>16</size>
 +
                <color><red>0</red><green>0</green><blue>0</blue><alpha>255</alpha></color>
 +
        </font>
 +
</source>
 +
 +
As you can see, each &lt;font&gt; element can be assigned to one or multiple targets, separated by commas. There can also be a single &lt;font&gt; element with no target attribute that overrides the defaults for the entire theme. The rule is that for each font, each parameter (size, color, font name) gets individually looked up first in a &lt;font&gt; element with the specific target; if it doesn't exist or doesn't have that parameter, it gets looked up in the base &lt;font&gt; element, and if that doesn't exist or doesn't have that parameter, the default is used. You should no longer use the old &lt;font_color&gt; element (though it is still supported for backwards compatibility).
 +
 +
As an example, the following theme.xml (combined with the appropriate TTF files) sets up the fonts exactly the same way as they are by default, but without actually falling back to the defaults:
 +
 +
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 +
<theme version="1">
 +
        <description>Droid Sans font</description>
 +
        <font>
 +
                <file>DroidSans-Bold.ttf</file>
 +
                <size>16</size>
 +
        </font>
 +
        <font target="button,dlgtitle,appname">
 +
                <size>20</size>
 +
        </font>
 +
        <font target="memo">
 +
                <file>DroidSans.ttf</file>
 +
                <size>16</size>
 +
        </font>
 +
        <font target="button_desel">
 +
                <file>DroidSans.ttf</file>
 +
                <size>20</size>
 +
        </font>
 +
</theme></source>
 +
 +
Additionally, you can specify that the theme supports certain CKJ languages in its fonts, to enable those translations (though currently only Japanese is supported). Specify the language codes separated by commas as the langs attribute of the main &lt;theme&gt; element:
 +
<source lang="xml"><theme version="1" langs="ja"></source>
 +
 +
Keep in mind that the button and button_desel fonts should always be different in some way (weight, size, color). Otherwise, you will not be able to tell the currently selected options in the options menu.
    
== Changelog ==
 
== Changelog ==
 +
=== 1.1.0 ===
 +
 +
* Added support for RVL-CNT-01-TR Wiimotes
 +
* New TrueType font renderer (FreeType) with antialiasing and theming
 +
* The new default font is Droid Sans
 +
* Added full UTF-8/Unicode support (font dependent)
 +
* Added Japanese translation
 +
* IOS is always reloaded, use ahb_access to keep AHB access enabled
 +
* Fixed HBC framebuffer tearing/lag/sync/corruption issues
 +
* Aligned HBC graphics to the pixel grid (sharper graphics)
 +
* Aligned font rendering to the pixel grid in both 4:3 and 16:9 mode
 +
* Fixed/improved text layout
 +
* Fixed support for huge meta.xml files (e.g. very long descriptions)
 +
* Renamed "Coder" to "Author" in app descriptions (&lt;coder&gt; is now an alias for <author>)
 +
* Fixed missing theme app entries (sometimes)
 +
* Changed many crashes into explicit errors / a panic screen
 +
* Speed and stability improvements when launching apps (cleanup after IOS)
 +
* Reload stub: support any BAT setup (or even real mode)
 +
* Reload stub: do not depend on existing exception vectors
 +
* Reload stub: do not touch HID4
 +
* Reload stub: disable IRQs ASAP
 +
* Fixed bugs in device hotplugging support
 +
* Added nicer error message triggered when HBC runs out of memory while loading an app
 +
* Removed the <unknown> coder/version labels
 +
* Fixed memory leaks while loading themes and in app entries
 +
* Reduced the minimum theme size (for xml-only themes)
 +
* Increased the maximum theme size up to 20MB (for huge fonts)
 +
* Reduced memory fragmentation when loading apps/themes (less OOM errors)
 +
* Fixed sorting by release date
 +
* Fixed crashes with incomplete meta files
 +
* Themes now affect language choice (due to font differences)
 +
* HBC now allows apps to load code at 0x3400
 +
* Fixed various buffer overflow / error conditions
 +
* Fixed/improved thread synchronization and race conditions
 +
* Theme ZIP files can now contain .txt files, which are ignored (README.txt, etc.)
 +
* HBC can now take screenshots (Nunchuk Z+C, in that order)
 +
* Updated to devkitPro r24 and latest libogc/libfat git
 +
 
=== 1.0.8 ===
 
=== 1.0.8 ===
 
* General USB improvements for all IOS versions, this fixes the regression introduced in version 1.0.7.
 
* General USB improvements for all IOS versions, this fixes the regression introduced in version 1.0.7.