Аня
Сообщения : 46 Очки : 27016 Репутация : 4 Дата регистрации : 2010-02-26 Возраст : 31 Откуда : Санкт-Петербург
| Тема: Твик Игры(F1-F12) Сб Май 01, 2010 1:09 pm | |
| Протестировано Gotyshko. Качаем архив с текстурой, распаковываем, пихаем в texture\ui\ods\ с заменой. Открываем scripts\lua\forms\main.cluЗаменяем вот это (если не стоит ODS Noir, то может немного отличаться): - Код:
-
----------------------------------------------------------------------------------- ---їмЅЭЗш skills shortcut ----------------------------------------------------------------------------------- frmFast = UI_CreateForm( "frmFast", FALSE, 328, 45, 290, 557, TRUE, FALSE ) --UI_FormSetHotKey( frmFast, ALT_KEY, HOTKEY_T ) UI_ShowForm( frmFast, TRUE ) UI_SetFormStyle( frmFast, 7 )---ПВ UI_AddFormToTemplete( frmFast, FORM_MAIN ) UI_SetIsDrag( frmFast, TRUE ) UI_FormSetIsEscClose( frmFast, FALSE )
imgMain1 = UI_CreateCompent( frmFast, IMAGE_TYPE, "imgMain1", 328, 45, 0, 0 ) UI_LoadImage( imgMain1, "texture/ui/ods/frmfast.tga", NORMAL, 328, 45, 0, 0 )
--imgMain2 = UI_CreateCompent( frmFast, IMAGE_TYPE, "imgMain2", 39, 43, 256, 0 ) --UI_LoadImage( imgMain2, "texture/ui/new4.tga", NORMAL, 39, 43, 0, 79 )
fscMainF0 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF0", 32, 32, 8, 9 ) fscMainF1 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF1", 32, 32, 42, 9 ) fscMainF2 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF2", 32, 32, 76, 9 ) fscMainF3 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF3", 32, 32, 110, 9 ) fscMainF4 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF4", 32, 32, 144, 9 ) fscMainF5 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF5", 32, 32, 178, 9 ) fscMainF6 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF6", 32, 32, 212, 9 ) fscMainF7 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF7", 32, 32, 246, 9 ) fscMainF8 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF8", 32, 32, 280, 9 )
-- ПтЙП°ґЕҐ btnFastUp = UI_CreateCompent( frmFast, BUTTON_TYPE, "btnFastUp", 6, 9, 318, 21 ) UI_LoadButtonImage( btnFastUp, "texture/ui/ods/frmfast.tga", 6, 9, 0, 45, TRUE ) UI_SetHint( btnFastUp, "Switch (F12)" )
-- ПтПВ°ґЕҐ btnFastDown = UI_CreateCompent( frmFast, BUTTON_TYPE, "btnFastDown", 7, 8, 280, 22 ) --UI_LoadButtonImage( btnFastDown, "texture/ui/Nbotton.tga", 7, 8, 82, 12, TRUE ) --UI_SetHint( btnFastDown, "Next (Ctrl+])" )
На вот это: - Код:
-
----------------------------------------------------------------------------------- -- Панель F1-F12 в стиле ODS Noir[color=red] KotoC1er[/color] ----------------------------------------------------------------------------------- frmFast = UI_CreateForm( "frmFast", FALSE, 430, 45, 290, 557, TRUE, FALSE ) --UI_FormSetHotKey( frmFast, ALT_KEY, HOTKEY_T ) UI_ShowForm( frmFast, TRUE ) UI_SetFormStyle( frmFast, 7 )---ПВ UI_AddFormToTemplete( frmFast, FORM_MAIN ) UI_SetIsDrag( frmFast, TRUE ) UI_FormSetIsEscClose( frmFast, FALSE ) imgMain1 = UI_CreateCompent( frmFast, IMAGE_TYPE, "imgMain1", 256, 45, 0, 0 ) UI_LoadImage( imgMain1, "texture/ui/ods/frmfast.tga", NORMAL, 256, 45, 0, 0 ) imgMain2 = UI_CreateCompent( frmFast, IMAGE_TYPE, "imgMain2", 174, 45, 256, 0 ) UI_LoadImage( imgMain2, "texture/ui/ods/frmfast.tga", NORMAL, 174, 45, 0, 54 ) fscMainF0 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF0", 32, 32, 8, 9 ) fscMainF1 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF1", 32, 32, 42, 9 ) fscMainF2 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF2", 32, 32, 76, 9 ) fscMainF3 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF3", 32, 32, 110, 9 ) fscMainF4 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF4", 32, 32, 144, 9 ) fscMainF5 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF5", 32, 32, 178, 9 ) fscMainF6 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF6", 32, 32, 212, 9 ) fscMainF7 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF7", 32, 32, 246, 9 ) fscMainF8 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF8", 32, 32, 280, 9 ) fscMainF9 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF9", 32, 32, 314, 9 ) fscMainF10 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF10", 32, 32, 348, 9 ) fscMainF11 = UI_CreateCompent( frmFast, FAST_COMMANG_TYPE, "fscMainF11", 32, 32, 382, 9 ) btnFastDown = UI_CreateCompent( frmFast, BUTTON_TYPE, "btnFastDown", 6, 9, 420, 21 ) btnFastUp = UI_CreateCompent( frmFast, BUTTON_TYPE, "btnFastUp", 6, 9, 420, 21 ) UI_LoadButtonImage( btnFastUp, "texture/ui/ods/frmfast.tga", 6, 9, 0, 45, TRUE ) UI_SetHint( btnFastUp, "Switch (F12)" ) | |
|