Aeldra Stili Yan Menü Alternatif Çözüm

Tengrist

MT Üye
MT Üye
Mesaj
384
Çözümler
11
Beğeni
275
Puan
809
Ticaret Puanı
0
gece gece tonlarca kodla halledilmiş aeldra yan menü dosyasını inceliyordum:
Linkleri görebilmek için giriş yap veya kayıt ol.


eklemeye karar vermiştim ki acaba kullandığım filesta yan menüye kodlar nasıl eklenmiş diye uiinventory.py dosyasında gezinirken koyulan buttonların uiscript'te systemswindow.py diye bir dosyayla ilişkili olduğunu fark ettim, aşağıdaki kodun 29. satırındaki değişiklikle arka plansız buttonları eklemiş oldum.
değiştiğim satırlar:
window = {
    "name" : "SystemsWindow",

    "x" : SCREEN_WIDTH - 190 - 148 - 60, #176
    "y" : SCREEN_HEIGHT - 55 - 565 + 209 + 32 + 37 + 37 + 37 + 37, #37
   
    "width" : 148 -91, #148
    "height" : 260+35+30+30, #139

    "type" : "window",

    "children" :
    (
       
        {
            "name" : "SystemsWindowLayer",

            "x" : 5,
            "y" : 0,

            "width" : 148 - 91,
            "height" : 310+50+30+30, #139

            "children" :
            (
               
                {
                    "name" : "SystemsWindowBoard",
                    "type" : "window", ##bu satırı board'dan window a çevirince arka plan gitti, ben de uğraşmamış oldum##
                    "style" : ("attach", "float"),

                    "x" : 10,
                    "y" : 0,

                    "width" : 148 - 9991-800,
                    "height" : 302+27+30+30, #172

                    "children" :
                    (
                        {"name":"Button1","type":"button","x":X,"y":Y+1,"default_image":Button1_IMG_1,"over_image":Button1_IMG_2,"down_image":Button1_IMG_3, "tooltip_x": -7, "tooltip_y": -14},
                        {"name":"Button2","type":"button","x":X,"y":Y+EK_Y+3,"default_image":Button2_IMG_1,"over_image":Button2_IMG_2,"down_image":Button2_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button7","type":"button","x":X,"y":Y+EK_Y+EK_Y+3+3,"default_image":Button7_IMG_1,"over_image":Button7_IMG_2,"down_image":Button7_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button4","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+3+3+3,"default_image":Button4_IMG_1,"over_image":Button4_IMG_2,"down_image":Button4_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button5","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3,"default_image":Button5_IMG_1,"over_image":Button5_IMG_2,"down_image":Button5_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button6","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3+3,"default_image":Button6_IMG_1,"over_image":Button6_IMG_2,"down_image":Button6_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button3","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3+3+3,"default_image":Button3_IMG_1,"over_image":Button3_IMG_2,"down_image":Button3_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button8","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3+3+3+3,"default_image":Button8_IMG_1,"over_image":Button8_IMG_2,"down_image":Button8_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button9","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3+3+3+3+3,"default_image":Button9_IMG_1,"over_image":Button9_IMG_2,"down_image":Button9_IMG_3, "tooltip_x": 0, "tooltip_y": -14},
                        {"name":"Button10","type":"button","x":X,"y":Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+EK_Y+3+3+3+3+3+3+3+3+3,"default_image":Button10_IMG_1,"over_image":Button10_IMG_2,"down_image":Button10_IMG_3, "tooltip_x": 0, "tooltip_y": -14},

                    ),
                },
            )
        },
    ),
}

kanıt:
Linkleri görebilmek için giriş yap veya kayıt ol.
 
bu üstteki konuyla bağlantılı mı yoksa ayrı bir düzenleme mi düzenleme yaptığın yan menüyü de paylaşsaydın :D
 
Geri
Üst