Çözüldü kanal degıstırme ekranı

  • Konuyu açan Konuyu açan SULEYMAN BOZOK
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 2
  • Gösterim Gösterim 56
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

SULEYMAN BOZOK

ANKA2 RINAMT2 PROJESINE HAKIM OLAN GELISTIRICI
Premium Üye
Yardımsever Üye
Usta Üye
Mesaj
1.188
Çözümler
73
Beğeni
1.534
Puan
1.359
Ticaret Puanı
0
ch1 den ch6 kadar kanal secme ekranı eklıyorum fakat karsılastıgım sorunlar var bır turlu anlam veremedım uısprıtten chdegis.py dosyası actım eski eklentılerımı systemdialog.py bakar ve ekledıgım chdegıs.py kodlarını kontrol ederek bır sorun goremedım uisystemdede butunlar kısmına bakıyorum self bolumunde ondada proglem yok oyunna gırıs saglıyorum fakat sysr hatasında kanal1_butun hatası verıp duruyorum bu konu hakında yardımcı olan var


chdegıstırme.py uisprint:
Genişlet Daralt Kopyala
import uiScriptLocale

ROOT = "d:/ymir work/ui/public/"

TEMPORARY_X = +13
BUTTON_TEMPORARY_X = 5
PVP_X = -10

LINE_LABEL_X     = 30
LINE_DATA_X     = 90
LINE_STEP    = 0
SMALL_BUTTON_WIDTH     = 45
MIDDLE_BUTTON_WIDTH     = 65


window = {
    "name" : "GameOptionDialog",
    "style" : ("movable", "float",),

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

    "width" : 300,
    "height" : 70,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",

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

            "width" : 300,
            "height" : 90,

            "children" :
            (
                ## Title
                {
                    "name" : "titlebar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 8,
                    "y" : 8,

                    "width" : 284,
                    "color" : "gray",

                    "children" :
                    (
                        {
                        "name":"titlename",
                        "type":"text",
                       
                        "x":0,
                        "y":3,
                       
                        "text" : uiScriptLocale.SYSTEMCH,
                        "horizontal_align":"center",
                        "text_horizontal_align":"center"
                        },
                    ),
                },
                {
                    "name" : "kanal1_button",
                    "type" : "button",


                    "x" : 10,
                    "y" : 30 ,


                    "text" : "CH1",
                    "text_color" : 0xffF8BF24,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
                {
                    "name" : "kanal2_button",
                    "type" : "button",


                    "x" : 57,
                    "y" : 30,


                    "text" : "CH2",
                    "text_color" : 0xffF8BF24,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
                {
                    "name" : "kanal3_button",
                    "type" : "button",


                    "x" : 104,
                    "y" : 30,


                    "text" : "CH3",
                    "text_color" : 0xffF8BF24,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
                {
                    "name" : "kanal4_button",
                    "type" : "button",


                    "x" : 151,
                    "y" : 30,


                    "text" : "CH4",
                    "text_color" : 0xffF8BF24,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
                {
                    "name" : "kanal5_button",
                    "type" : "button",


                    "x" : 198,
                    "y" : 30,


                    "text" : "CH5",
                    "text_color" : 0xffF8BF24,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
                {
                    "name" : "kanal6_button",
                    "type" : "button",


                    "x" : 245,
                    "y" : 30,


                    "text" : "CH5",
                    "text_color" : 0xffF8BF24,,


                    "default_image" : ROOT + "small_Button_01.sub",
                    "over_image" : ROOT + "small_Button_02.sub",
                    "down_image" : ROOT + "small_Button_03.sub",
                },
               
            ),
        },
    ),
}
uisystem:
Genişlet Daralt Kopyala
        self.GetChild("kanal1_button").SAFE_SetEvent(self.__ClickKanal1Button)
        self.GetChild("kanal2_button").SAFE_SetEvent(self.__ClickKanal2Button)
        self.GetChild("kanal3_button").SAFE_SetEvent(self.__ClickKanal3Button)
        self.GetChild("kanal4_button").SAFE_SetEvent(self.__ClickKanal4Button
       
       
       
       
        self.GetChild("kanal1_button").SAFE_SetEvent(self.__ClickKanal1Button)
        self.GetChild("kanal2_button").SAFE_SetEvent(self.__ClickKanal2Button)
        self.GetChild("kanal3_button").SAFE_SetEvent(self.__ClickKanal3Button)
        self.GetChild("kanal4_button").SAFE_SetEvent(self.__ClickKanal4Button)
sysrhatası:
Genişlet Daralt Kopyala
0325 16:39:19023 :: Traceback (most recent call last):

0325 16:39:19023 ::   File "networkModule.py", line 247, in SetGamePhase

0325 16:39:19023 ::   File "game.py", line 274, in __init__

0325 16:39:19024 ::   File "interfaceModule.py", line 368, in MakeInterface

0325 16:39:19024 ::   File "interfaceModule.py", line 258, in __MakeDialogs

0325 16:39:19024 ::   File "uiSystem.py", line 51, in LoadDialog

0325 16:39:19024 ::   File "uiSystem.py", line 71, in __LoadSystemMenu_Default

0325 16:39:19025 ::   File "ui.py", line 4241, in GetChild

0325 16:39:19025 :: KeyError
0325 16:39:19025 :: :
0325 16:39:19025 :: 'kanal1_button'
0325 16:39:19025 ::
 
uisysteme key ekleyip chdegis.pyye ekleme yaparsan hata alırsın systemdialog mu ne oraya ekleme yapman lazım
 
hızlı kanal secme ekran sıstemı bulup aynı olan kodları kaldırarak yenı olan kanal secme ekran duzenlemesı yapılmıstır tesekurler mmo tutkunlarına.
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst