- Mesaj
- 225
- Çözümler
- 15
- Beğeni
- 55
- Puan
- 489
- Ticaret Puanı
- 0
Merhaba, board ekledim invisible olarak ancak boardın başlayacağı noktayı nasıl seçeceğimi bilmiyorum. Şu an kırmızıyla seçili olan herlerdeki butonlara tıklanmıyor invisible board ekli olduğu için
Şu şekilde yapmak istiyorum.
Şu şekilde yapmak istiyorum.
Boardın uiscript'teki kodları::
import uiScriptLocale
window = {
"name" : "sideBarBoard",
"x" : -25,
"y" : 80,
"width" : 50,
"height" : 200,
"style" : ("attach", "float"),
"children" :
(
{
"name" : "board",
"type" : "invisibleboard",
"style" : ("attach",),
"x" : -25,
"y" : 80,
"width" : 50,
"height" : 200,
"children" :
(
## Search Shop
{
"name" : "SearchShopButton",
"type" : "button",
"x" : 6,
"y" : 15 + 35*2,
"default_image" : "d:/ymir work/ui/game/windows/button_search_shop_01.tga",
"over_image" : "d:/ymir work/ui/game/windows/button_search_shop_02.tga",
"down_image" : "d:/ymir work/ui/game/windows/button_search_shop_03.tga",
},
## Switch Bot
{
"name" : "SwitchBotButton",
"type" : "button",
"x" : 6,
"y" : 20 + 35*3,
"default_image" : "d:/ymir work/ui/game/windows/button_switch_bot_01.tga",
"over_image" : "d:/ymir work/ui/game/windows/button_switch_bot_02.tga",
"down_image" : "d:/ymir work/ui/game/windows/button_switch_bot_03.tga",
},
## Inventaire speciale
{
"name" : "SpecialInventoryButton",
"type" : "button",
"x" : 6,
"y" : 25 + 35*4,
"default_image" : "d:/ymir work/ui/game/windows/inventaire_special_button_01.tga",
"over_image" : "d:/ymir work/ui/game/windows/inventaire_special_button_02.tga",
"down_image" : "d:/ymir work/ui/game/windows/inventaire_special_button_03.tga",
},
),
},
),
}
uipy kodları:
class InvisibleBoard(Window):
CORNER_WIDTH = 32
CORNER_HEIGHT = 32
LINE_WIDTH = 128
LINE_HEIGHT = 128
LT = 0
LB = 1
RT = 2
RB = 3
L = 0
R = 1
T = 2
B = 3