[THUG2][PC]Custom Theme

Tutorials for all THUG+ games goes here.
Forum rules
This forum is only for posting tutorials.
Specify what game it is for, and please take a look at this Template.
Post Reply
ProHad
VIP
Posts: 45
Joined: Wed Mar 03, 2010 10:10 pm

[THUG2][PC]Custom Theme

Post by ProHad » Wed Mar 17, 2010 6:51 pm

Credit to Basti:
You will need a qbcompiler, an editor, a colortable (example: http://www.farb-tabelle.de/de/farbtabelle.htm or photoshop etc.)

Ok the file you will need is the themes.qb from your scriptsfolder

The file gives you many informations about the objects with their colors and the relations between them.
At the beginning of the file you will notice that:

Code:

:i $UNHIGHLIGHTED_TEXT_COLOR$ = $DE_UNHIGHLIGHTED_TEXT_COLOR$
:i $HIGHLIGHTED_TEXT_COLOR$ = $DE_HIGHLIGHTED_TEXT_COLOR$
:i $HIGHLIGHT_BAR_COLOR$ = $DE_HIGHLIGHT_BAR_COLOR$
:i $MENU_TITLE_COLOR$ = $DE_MENU_TITLE_COLOR$

The DE_ is a prefix for the THUG2standard theme. On THUG1 you may know, there exist a thememenu which changes the prefixes to set a own theme.
Examples:


Code: Select all

DE_ = Retro-Hawk
AL_ = Cloudbuster
NS_ = Neversoft
SS1_  = Secret 1 Kiss
SS2_ = Secret 2 Iron Man
SS3_ = Secret 3 T.H.U.D.
SS4_  = Secret 4 ?
UG_ = T.H.U.G.
SP1_ = Sponsor 1 Birdhouse
SP2_ =Sponsor 2 Element
SP3_ =Sponsor 3 Flip
SP4_ =Sponsor 4 Girl
SP5_ =Sponsor 5 Zero
FU_ = Skullz n Stuff
PA_ =Chilled
things from thug1script in thug2:
:i $THEME_COLOR_PREFIXES$ = :a{%s(2,"DE"):a}
:i $THEME_PREFIXES$ = :a{%s(2,"DE"):a}

Ok now we check some objectvalues:


Code: Select all

$DE_FONT_COLORS$
Color of fonts but which color which font would have, I havent tested.

Code: Select all

$DE_HUD_COLOR$
Color of the Head up display on the upper left.

Code: Select all

$DE_BALANCE_METER_COLOR$
Color of balance meter

Code: Select all

$DE_HUD_SPECIAL_COLOR$ .......etc...
there also are many other things listed^^

Now we check functioncode itself:

Code: Select all

:i $DE_BALANCE_METER_COLOR$ = :a{%i(0,00000000)%i(82,00000052)%i(117,00000075)%i(128,00000080):a}
prefix
Objectname
Arraybrackets
Red
Green
Blue
Alpha (0=invisible)

yes the array would work on a simple way like that

Code: Select all

x={r,g,b,a}

http://hackthps.it.cx/forum/attachme...1&d=1205241386
Retro-Hawk %i(0,00000000)%i(82,00000052)%i(117,00000075)%i(128,00000080)

http://hackthps.it.cx/forum/attachme...1&d=1205241358
My own
%i(128,00000080)%i(74,0000004a)%i(7,00000007)%i(128,00000080)



Have fun with your own themes

Post Reply