The new changes break the sidebar otherwise, I'll update again soon once people actually translate them
17 KiB
| lang | layout | section | category | title |
|---|---|---|---|---|
| he-IL | wiki | twilightmenu | customization | How to create DSi / 3DS skins |
הדרך הפשוטה ביותר להתאמה אישית של ערכת נושא היא על ידי עריכת קבצי הpng של הטקסטורות בתיקיות ui, battery, ו/או volume של ערכת הנושא. קבצים אלו יכולים להיות כל png עם דגש קטן שרק פיקסלים שהם 100% שקופים יהיו שקופים, כל דרגה אחרת של שקיפות תהיה ללא שקיפות כלל. בנוסף, כל חלק שהוא שקוף כחלק מסט (לדוגמת האייקונים של הבטריה) צריכים להיות שקופים בכל החלקים, מאחר ופיקסלים שקופים מדולגים במקום להיות מועברים לרקע, כך שכל חלק שהוא שקוף בחלקו יהיה עם טקסטורת הרקע במקום שקיפות. טקסטורות אלו רשאיות להיות בגדלים שונים, אך עשויות לדרוש התאמה של תצורת ערכת הנושא בשביל הצגה נכונה (ראו מטה).
שינויים לטקסטורות עם לוח צבעים דורשים יותר עבודה. בתוך התיקיות grit וbackground_grit של ערכת הנושא, קבצי התמונות השונים ניתנים לעריכה. נדרשים גם הdevkitPro's toolchains עם GRIT מותקן. לאחר סיום עריכת הקבצים, חייב להריץ את
$ make
על מנת לקמפל את ערכות הנושא לפורמט Grit RIFF. זה יקמפל את הטקסטורות עם פלטת הצבעים לתוך פורמט .grf לתיקיית grf. אל תבצעו שינויים לקבצי .grit עד שתקראו את הפרק על הכנת ערכות נושא מתקדמת בהמשך.
שימו לב שטקסטרות עם פלטת צבעים מגיעות עם יותר מגבלות מאשר טקסטורות BMP, כשהעיקרי מביניהם הם מקסימום של 16 צבעים לכל טקסטורה. למרות הנאמר, חלק מהטקסטורות עלולות להיות עם מגבלות חמורות יותר, אך ניתן לערוך אותם עם סיכון של העדר זיכרון ללוח הצבעים (ראו מטה).
The example themes are in the romsel_dsimenutheme/resources/dsimenu_theme_examples folder in TWiLight Menu++'s repository. To download them, download the repository or clone it with git, then find that folder.
תיאורי קבצי ערכת הנושא
The volume and battery textures are self explanatory.
טקסטורות רקע (תיקיית background_grit)
| טקסטורה | תיאור |
|---|---|
| bottom | טקסטורת הרקע בחלק התחתון כאשר לא מרחפים מעל אייקון |
| bottom_bubble | טקסטורת הרקע בחלק התחתון כאשר מרחפים מעל אייקון |
| bottom_ds | עבור ערכת הנושא 3DS, טקסטורת הרקע בחלק התחתון כאשר לא מרחפים מעל אייקון על מכשיר DS Lite |
| bottom_bubble_ds | עבור ערכת הנושא 3DS, טקסטורת הרקע בחלק התחתון כאשר מרחפים מעל אייקון על מכשיר DS Lite |
| top | הרקע בחלק העליון |
טקסטורות עם לוח צבעים (תיקיית grit)
| טקסטורה | תיאור | מגבלות לוח צבעים (אם מתחת ל16) |
|---|---|---|
| bips | הנקודות המוצגות בתחתית פס הגלילה (ערכת נושא DSi) | |
| box | הטקסטורה של הקופסה, מכילה טקסטורות גם לקופסה מלאה וגם לריקה (ערכת נושא DSi) | |
| box_empty | הטסקסטורה המוצגת עבור קופסה ריקה (ערכת נושא 3DS) | בערכת הנושא 3DS, ברירת המחדל של הצבע השקוף הוא #E0DAD9 |
| box_full | הטסקסטורה המוצגת עבור קופסה ריקה עם אייקון (ערכת נושא 3DS) | בערכת הנושא 3DS, ברירת המחדל של הצבע השקוף הוא #E0DAD9 |
| brace | The brace texture shown past the first and last icon (DSi theme) | 4 צבעים |
| bubble | The bottom bit of the bubble that draws over the start border or icon box | 8 Colors |
| button_arrow | The textures for the arrows on either side of bottom scrollbar (DSi Theme) | |
| cornerbutton | The buttons that are displayed on the SELECT menu (DSi Menu) (The name is based on an old use) | |
| cursor | The border with animation frames that indicate the selected icon (3DS Theme) | |
| dialogbox | The background of the dialog box that slides down | |
| folder | The icon for folders | |
| icon_gb | The icon for Game Boy games | |
| icon_gba | The icon for GBA games (All themes) and the top icon to launch GBARunner2 (3DS Theme) | The default transparent color is #00FF00 |
| icon_gbamode | The icon for native GBA Mode | |
| icon_gg | The icon for Game Gear games | |
| icon_manual | The icon for the manual | |
| icon_md | The icon for Mega Drive games | |
| icon_nes | The icon for NES games | |
| icon_plg | The icon for DSTWO plugins | |
| icon_settings | The icon for Nintendo DSi Settings | |
| icon_sms | The icon for Sega Master System games | |
| icon_snes | The icon for SNES games | |
| icon_unk | The icon displayed when a game is missing an icon | |
| launch_dot | The dots displayed when a game is launched (DSi Theme) | |
| moving_arrow | The arrow displayed when a game is being moved (DSi Theme) | |
| progress | The progress loading animation with 8 frames | 9 Colors |
| scroll_window | The part of the scrollbar that indicates the icons that are in view | 7 Colors |
| small_cart | The icons displayed along the top (3DS Theme) and in the SELECT menu (DSi Theme) | |
| start_border | The border with animation frames that indicates the selected icon (DSi Theme) | |
| start_text | The text displayed for the start border on the (DSi Theme) | 4 Colors |
| wirelessicons | The icons displayed to indicate a game has wireless support | 7 Colors |
UI textures (ui folder)
| Texture | Description |
|---|---|
| date_time_font | The font to display the date and time |
| Lshoulder | The left shoulder |
| Lshoulder_greyed | The left shoulder when there are no pages to the left |
| Rshoulder | The right shoulder |
| Rshoulder_greyed | The right shoulder when there are no pages to the right |
Video texture (video folder)
3dsRotatingCubes.rvid is a Rocket Video file. For more information on converting videos to rvid, read Converting a video to .rvid on the Vid2RVID wiki. If you don't want this to be drawn you can simply delete it.
Theme configuration
You may configure various options on how the theme is drawn in the theme.ini to accommodate larger sprites or textures.
| ערך | תיאור | ברירת מחדל (3DS) | ברירת מחדל (DSi) |
|---|---|---|---|
StartBorderRenderY |
The initial Y position of the Start Border | 92 | 81 |
StartBorderSpriteW |
The width of the start border sprite. Note that the start border texture is exactly half of the full border. | 32 | 32 |
StartBorderSpriteH |
The height of the start border sprite | 64 | 80 |
TitleboxRenderY |
The initial Y position of the title text drawn | 96 | 85 |
BubbleTipRenderY |
The Y position of the tip of the bubble that is drawn over the start border | 98 | 80 |
BubbleTipRenderX |
The X position of the tip of the bubble that is drawn over the start border | 125 | 22 |
BubbleTipSpriteH |
The height of the bubble tip sprite | 7 | 8 |
BubbleTipSpriteW |
The width of the bubble tip sprite | 7 | 11 |
RotatingCubesRenderY |
The Y position on the top screen to draw the rotating cubes | 78 | N/A |
ShoulderLRenderY |
The Y position on the top screen to draw the left shoulder | 172 | 172 |
ShoulderLRenderX |
The X position on the top screen to draw the left shoulder | 0 | 0 |
ShoulderRRenderY |
The Y position on the top screen to draw the right shoulder | 172 | 172 |
ShoulderRRenderX |
The X position on the top screen to draw the right shoulder | 178 | 178 |
VolumeRenderX |
The X position on the top screen to draw the right shoulder | 4 | 4 |
VolumeRenderY |
The Y position on the top screen to draw the volume icon | 16 | 16 |
BatteryRenderY |
The Y position on the top screen to draw the battery icon | 5 | 5 |
BatteryRenderX |
The X position on the top screen to draw the battery icon | 235 | 235 |
RenderPhoto |
Whether or not to draw a photo on the top screen | 0 | 1 |
StartTextUserPalette |
Assign the DSi Profile Theme to the palette of the start text | N/A | 1 |
StartBorderUserPalette |
Assign the DSi Profile Theme Palette to the palette of the start border | N/A | 1 |
ButtonArrowUserPalette |
Assign the DSi Profile Theme Palette to the palette of the arrow buttons on the bottom of the screen | N/A | 1 |
MovingArrowUserPalette |
Assign the DSi Profile Theme Palette to the palette of the arrow shown when moving icons | N/A | 1 |
LaunchDotsUserPalette |
Assign the DSi Profile Theme Palette to the palette of the launch dots | N/A | 1 |
DialogBoxUserPalette |
Assign the DSi Profile Theme Palette to the palette of the dialog box | N/A | 1 |
Advanced theming
Occasionally, you may require more than the default number of colors for some paletted textures. In such cases, you may modify the .grit compilation file for the texture to increase the size of the palette.
For example, in scroll_window.grit, you may edit -pn7 and change 7 to 16 for 16 colors. Be aware that if you remove the entire -pn line, you may encounter unexpected results.
Also note that the absolute maximum of 16 colors per texture is enforced in code and can not be modified. Even if you increase the number of palettes to above 16, no more than 16 colors worth of palette data will be loaded. With the amount of textures loaded in, there may not be enough palette memory to hold 16 colors worth of palettes for every texture. Keep this in mind when adjusting palette sizes.
Additionally, paletted textures must have dimensions that are a multiple of 2. Paletted textures sizes can not be changed except for bubble and start_border, which can have configurable sprite dimensions in theme.ini. However, note that doing so may have unexpected consequences.
Paletted textures are not checked for validity. An invalid texture should be rare if created with the provided makefile, but in certain cases a corrupted texture will cause the menu to not load at all.
Custom background music and sound fonts.
The DSi Menu and 3DS themes also support custom music. See DSi / 3DS skins - Custom SFX for more details.