RUGENDOCS
Pagsisimula

Mga Theme

Ang Shonen Ink at Dojo, paano magpalit sa pagitan nila, at paano ginagawa at ine-edit bilang data ang mga menu.

Ang mga menu ng rugen ay data, hindi code. Ang theme ay isang folder sa ilalim ng motif/themes/<name>/ na may mga TOML screen layout, WebP art at katugmang MUGEN screenpack (system.def, fight.def, mga SFF sprite, font). Dalawang theme ang kasama ng laro.

Shonen Ink (ink, ang default)

Papel at mga screentone na tuldok, itim na ink panel na may matitigas na offset shadow, pulang stamp at mga ”!!” na marka, mga nakahilig na slab at speed-line fan: isang pahina ng manga. Hinihiram ng site na ito ang itsura nito. Ang fight HUD ay ang “Ink Slab” na lifebar set.

Mula 0.6, muling dinisenyo ang mga ink screen: isang online hub na may mga toast at dialog, PROFILE, ang mga room, ang matchup face-off, isang pause menu na nagpapalabo sa laban na may two-column na move list, isang result screen na pinapangalanan ang nanalo, at mga fighter card na istilong Smash sa mga arena fight. Ang mga room code ay may sarili nilang mabigat na font.

Ang matchup screen ng Shonen Ink: dalawang puting card na may makakapal na itim na border, isang pulang YOU tag at isang nakahilig na itim na FAIR stamp sa gitna.
Shonen Ink: ang online matchup screen.

Dojo (dojo)

Isang training hall sa gabi, sa lacquer at washi: madilim na lacquer na dingding, kahoy na haligi, biga at plaque, mga washi paper sheet sa kahoy na frame, sumi na letra at vermilion na hanko seal. Ang focus ay laging brass na gilid sa palibot ng vermilion na plaque; ang player 1 ay vermilion, ang player 2 ay brass. Ang mga pixel font nito (Press Start, Jersey) ang bumubuo sa mga tag, numero at caption; ang palette ay ang sariling palette.gpl ng theme. Mayroon itong bawat screen na meron ang ink theme, kasama ang stage select at ang online hub.

Pagpapalit ng theme

  • Sa laro: OPTIONS → INTERFACE → UI THEME.
  • Sa rugen.toml: [video] theme = "ink" o "dojo"; ang "classic" ay gumagamit ng flat na motif/ folder.
  • Sarili mo: ilagay ang theme folder sa themes/ sa tabi ng chars/ (o patakbuhin ang rugen theme new <name>). Lalabas ito sa INTERFACE bilang YOURS at nire-reload nang live habang ine-edit mo: tingnan ang Sarili mong mga theme.

Ang mga file na nawawala sa theme ay bumabalik sa flat na motif/, saka sa data/. Maaari ka ring maglagay ng klasikong MUGEN screenpack sa data/.

Pag-regenerate ng mga default: rugen ui-gen

Ang parehong theme ay iginuhit ng code, kaya maaari silang muling buuin anumang oras:

rugen ui-gen --theme ink     # Shonen Ink  → motif/themes/ink/
rugen ui-gen --theme dojo    # Dojo        → motif/themes/dojo/ (also the default)
rugen ui-gen --theme ink --out motif/themes/my-ink --font bold.ttf
OpsyonDefaultKahulugan
--themedojoink o dojo.
--outmotif/themes/<theme>Output na folder.
--motifmotifShared na motif folder (mga font, kit, palette).
--fontisang system bold TTF (Liberation Sans Narrow, DejaVu Sans Condensed, Arial, …)Font na ginagamit para sa mga nabuong text.

Mga kaugnay na generator:

rugen screenpack-gen [--font bold.ttf] [--out motif/themes/dojo]   # system/fight screenpack of a theme
rugen fontgen bold.ttf --size 13 --italic 3 --rim --out motif/font/my.def --preview my.png
rugen stage-gen [--out motif/stages]                              # built-in stages: training, ink_dojo, ink_arena
rugen pixelize in.png out.webp --width 640 --dither               # pixelize one image by hand
rugen kit-import                                                  # re-export the UI kit pieces

Pag-edit ng theme

Ang mga screen ay mga TOML file sa motif/themes/<theme>/ui/ (title.toml, options.toml, controls.toml, select.toml, stages.toml, vs.toml, pause.toml, result.toml, online.toml). Inilalatag ang mga ito sa virtual na 1280x720 na espasyo at binubuo ng mga node (panel, image, text, button, vbox, hbox, list, grid) na may mga posisyon, docking, 9-slice na imahe, skew, entry animation at text binding tulad ng {profile.name}. Nagti-trigger ang mga button ng action string (mode:arcade, netplay, back, …) at maaabot gamit ang keyboard, gamepad at mouse.

Ang node reference ay ang module documentation sa itaas ng crates/ui/src/lib.rs sa engine repository, at ang README.md ng bawat theme (motif/themes/ink/README.md, motif/themes/dojo/README.md) na naglilista ng mga font, colour bank at ang data na kinakabit ng options at controls page. Tingnan din ang Mga Screenpack: mga TOML theme. Mas mainam ang WebP para sa art; gumagana rin ang PNG.

May mali ba sa pahinang ito? I-edit ito sa GitHub.

HANAPIN !!

    ↑↓ para lumipat, Enter para buksan