How To add hot key to remove chat window...XD
TOPSG :: Forum :: Guides / Tutorials
Page 1 of 1
How To add hot key to remove chat window...XD
1) Changing the fonts
In the scripts/lua/font.clu file there is information of all the fonts used in game (heh, only 5) and surprise, surprise! You can edit it! The contents are:
Quote:
-- ´´½¨×ÖÌå,²ÎÊýdwStyleΪÒÔÏÂÈýÖÖÇé¿öµÄ¾ÛºÏ: 0x0001-´ÖÌå,0x0002-бÌå,0x0004-´øÏ»
Ïß,Ϊ0ÊÇÕý³£Ìå
function UI_CreateFont( font, size800, size1024, dwStyle )
return CLU_Call("UI_CreateFont", font, size800, size1024, dwStyle )
end
DEFAULT_FONT = UI_CreateFont( "simsun", 12, 12, 0 )
FONT14 = UI_CreateFont( "simsun", 13, 13, 0 )
FONT16 = UI_CreateFont( "simsun", 13, 13, 1 )
BIGFONT = UI_CreateFont( "simsun", 48, 48, 0 )
ARIAL_FONT = UI_CreateFont( "simsun", 12, 12, 0 )
To change a font type, just edit the values inside the ().
The syntax is:
( "FONT TYPE" , SIZE AT 800x600 RESOLUTION , SIZE AT 1024x786 RESOLUTION , 0 or 1)
I'm not sure about the last one, but from what I can understand, "1" makes the font have more quality, but also require more CPU.
2) Font Colors
Open the file "scripts/lua/gui.clu" and look for these lines:
Quote:
-- ÑÕÉ«
COLOR_BLACK = 4278190080
COLOR_RED = 4294901760
COLOR_WHITE = 4294967295
COLOR_PURPLE = 4293990336 -- ×ÏÉ«
TREE_TEXT_COLOR = COLOR_WHITE
Those are the default colors. To change them, just change the number after the "=".
3) Adding Hotkeys (to open/close Windows ONLY)
Reopen the file "scripts/lua/gui.clu" and scroll to the bottom.
After the last line, add this:
Quote:
UI_FormSetHotKey( frmItem, ALT_KEY, HOTKEY_E )
In this example, you could change the hotkey that opens the items window.
Syntax is:
( FORM , SPECIAL KEY , NORMAL KEY )
List of forms will come in a bit.
Special key is, ALT_KEY, CTRL_KEY or SHIFT_KEY.
The normal key consists of HOTKEY_* being * a letter (a to z)
Some forms are:
frmItem - Inventory
frmSkill - Skills
frmMission - Quests
If you need any other, tell me, I'll see if I can find it lying around.
NOTE: There are other forms that do work, but most will be useless.
***
i found a way to remove the chat window if you don't like it very much. If you open up the "\scripts\lua\forms\main.clu" file and search for "UI_FormSetHotKey( frmMain800, ALT_KEY, HOTKEY_X )" (without the quotes) it has a -- infront if it. Removing the -- will allow you to press Alt+X to remove and bring back the chat window. I have to wonder while they didn't allow it in the first place.
I've also found a few more windows to remove:
Hotkey window: Search for "UI_FormSetHotKey( frmFast, ALT_KEY, HOTKEY_T )" and remove the -- before it. Now you can press Alt+T to remove an bring back the hotkey bar.
Settings bar: Search for "UI_FormSetHotKey( frmMainFun, ALT_KEY, HOTKEY_D )" and remove the -- before it. Now you can press Alt+D to remove and bring back that bar in the bottom right corner with buttons to open your inventory or friends list.
PhuaChuuKang...^_^
![afro](https://2img.net/i/fa/i/smiles/icon_rr.png)
In the scripts/lua/font.clu file there is information of all the fonts used in game (heh, only 5) and surprise, surprise! You can edit it! The contents are:
Quote:
-- ´´½¨×ÖÌå,²ÎÊýdwStyleΪÒÔÏÂÈýÖÖÇé¿öµÄ¾ÛºÏ: 0x0001-´ÖÌå,0x0002-бÌå,0x0004-´øÏ»
![:registered: ®️](https://cdn.jsdelivr.net/emojione/assets/png/00ae.png?v=2.2.7)
function UI_CreateFont( font, size800, size1024, dwStyle )
return CLU_Call("UI_CreateFont", font, size800, size1024, dwStyle )
end
DEFAULT_FONT = UI_CreateFont( "simsun", 12, 12, 0 )
FONT14 = UI_CreateFont( "simsun", 13, 13, 0 )
FONT16 = UI_CreateFont( "simsun", 13, 13, 1 )
BIGFONT = UI_CreateFont( "simsun", 48, 48, 0 )
ARIAL_FONT = UI_CreateFont( "simsun", 12, 12, 0 )
To change a font type, just edit the values inside the ().
The syntax is:
( "FONT TYPE" , SIZE AT 800x600 RESOLUTION , SIZE AT 1024x786 RESOLUTION , 0 or 1)
I'm not sure about the last one, but from what I can understand, "1" makes the font have more quality, but also require more CPU.
2) Font Colors
Open the file "scripts/lua/gui.clu" and look for these lines:
Quote:
-- ÑÕÉ«
COLOR_BLACK = 4278190080
COLOR_RED = 4294901760
COLOR_WHITE = 4294967295
COLOR_PURPLE = 4293990336 -- ×ÏÉ«
TREE_TEXT_COLOR = COLOR_WHITE
Those are the default colors. To change them, just change the number after the "=".
3) Adding Hotkeys (to open/close Windows ONLY)
Reopen the file "scripts/lua/gui.clu" and scroll to the bottom.
After the last line, add this:
Quote:
UI_FormSetHotKey( frmItem, ALT_KEY, HOTKEY_E )
In this example, you could change the hotkey that opens the items window.
Syntax is:
( FORM , SPECIAL KEY , NORMAL KEY )
List of forms will come in a bit.
Special key is, ALT_KEY, CTRL_KEY or SHIFT_KEY.
The normal key consists of HOTKEY_* being * a letter (a to z)
Some forms are:
frmItem - Inventory
frmSkill - Skills
frmMission - Quests
If you need any other, tell me, I'll see if I can find it lying around.
NOTE: There are other forms that do work, but most will be useless.
***
i found a way to remove the chat window if you don't like it very much. If you open up the "\scripts\lua\forms\main.clu" file and search for "UI_FormSetHotKey( frmMain800, ALT_KEY, HOTKEY_X )" (without the quotes) it has a -- infront if it. Removing the -- will allow you to press Alt+X to remove and bring back the chat window. I have to wonder while they didn't allow it in the first place.
I've also found a few more windows to remove:
Hotkey window: Search for "UI_FormSetHotKey( frmFast, ALT_KEY, HOTKEY_T )" and remove the -- before it. Now you can press Alt+T to remove an bring back the hotkey bar.
Settings bar: Search for "UI_FormSetHotKey( frmMainFun, ALT_KEY, HOTKEY_D )" and remove the -- before it. Now you can press Alt+D to remove and bring back that bar in the bottom right corner with buttons to open your inventory or friends list.
PhuaChuuKang...^_^
![Shocked](https://2img.net/i/fa/i/smiles/icon_eek.gif)
![cheers](https://2img.net/i/fa/i/smiles/icon_cheers.png)
![afro](https://2img.net/i/fa/i/smiles/icon_rr.png)
karabau- No rank
- Posts : 4
Join date : 2009-01-16
TOPSG :: Forum :: Guides / Tutorials
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum