Çözüldü Esc menüsündeki nesne market kaldırma

  • Konuyu açan Konuyu açan canamem71
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 4
  • Gösterim Gösterim 42
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ı.

canamem71

Üye
Üye
Mesaj
18
Çözümler
1
Beğeni
2
Puan
53
Ticaret Puanı
0
bu şekilde değiştirdim fakat oyuna girmiyor ekran loadingde kalıyor.
 

Dosya Eklentileri

Çözüm
systemdialog.py:
Genişlet Daralt Kopyala
import uiScriptLocale

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

window = {
    "name" : "SystemDialog",
    "style" : ("float",),

    "x" : (SCREEN_WIDTH  - 200) /2,
    "y" : (SCREEN_HEIGHT - 288) /2,

    "width" : 200,
    "height" : 288,

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

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

            "width" : 200,
            "height" : 288,

            "children" :
            (
                {
                    "name" : "help_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 17,

                    "text" : uiScriptLocale.SYSTEM_HELP,

                    "default_image" : ROOT +...
systemdialog.py:
Genişlet Daralt Kopyala
import uiScriptLocale

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

window = {
    "name" : "SystemDialog",
    "style" : ("float",),

    "x" : (SCREEN_WIDTH  - 200) /2,
    "y" : (SCREEN_HEIGHT - 288) /2,

    "width" : 200,
    "height" : 288,

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

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

            "width" : 200,
            "height" : 288,

            "children" :
            (
                {
                    "name" : "help_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 17,

                    "text" : uiScriptLocale.SYSTEM_HELP,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                # MALL_BUTTON BURADAN KALDIRILDI

                {
                    "name" : "system_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 57,

                    "text" : uiScriptLocale.SYSTEMOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "game_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 87,

                    "text" : uiScriptLocale.GAMEOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "change_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 117,

                    "text" : uiScriptLocale.SYSTEM_CHANGE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "logout_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 147,

                    "text" : uiScriptLocale.SYSTEM_LOGOUT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "exit_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 187,

                    "text" : uiScriptLocale.SYSTEM_EXIT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "cancel_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 217,

                    "text" : uiScriptLocale.CANCEL,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
            ),
        },
    ),
}
 
systemdialog.py:
Genişlet Daralt Kopyala
import uiScriptLocale

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

window = {
    "name" : "SystemDialog",
    "style" : ("float",),

    "x" : (SCREEN_WIDTH  - 200) /2,
    "y" : (SCREEN_HEIGHT - 288) /2,

    "width" : 200,
    "height" : 288,

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

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

            "width" : 200,
            "height" : 288,

            "children" :
            (
                {
                    "name" : "help_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 17,

                    "text" : uiScriptLocale.SYSTEM_HELP,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                # MALL_BUTTON BURADAN KALDIRILDI

                {
                    "name" : "system_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 57,

                    "text" : uiScriptLocale.SYSTEMOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "game_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 87,

                    "text" : uiScriptLocale.GAMEOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "change_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 117,

                    "text" : uiScriptLocale.SYSTEM_CHANGE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "logout_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 147,

                    "text" : uiScriptLocale.SYSTEM_LOGOUT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "exit_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 187,

                    "text" : uiScriptLocale.SYSTEM_EXIT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "cancel_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 217,

                    "text" : uiScriptLocale.CANCEL,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
            ),
        },
    ),
}
Merhaba,
Sadece burdan kaldırmak yetmez. Buradan kaldırdığın zaman görüntüsünü kaldırırsın evet ama işlevi olan kodlar boşa çıkar onlarıda kaldırman gerek. Onlarda uisystem.py içerisinde mevcut. ingame tarzı kodlardı yanlış hatırlamıyosam zaten baktığın zaman anlarsın. Yapamazsan haber ver yada konuya dosyayı ekle yapalım.
 
Çözüm
systemdialog.py:
Genişlet Daralt Kopyala
import uiScriptLocale

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

window = {
    "name" : "SystemDialog",
    "style" : ("float",),

    "x" : (SCREEN_WIDTH  - 200) /2,
    "y" : (SCREEN_HEIGHT - 288) /2,

    "width" : 200,
    "height" : 288,

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

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

            "width" : 200,
            "height" : 288,

            "children" :
            (
                {
                    "name" : "help_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 17,

                    "text" : uiScriptLocale.SYSTEM_HELP,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                # MALL_BUTTON BURADAN KALDIRILDI

                {
                    "name" : "system_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 57,

                    "text" : uiScriptLocale.SYSTEMOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "game_option_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 87,

                    "text" : uiScriptLocale.GAMEOPTION_TITLE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "change_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 117,

                    "text" : uiScriptLocale.SYSTEM_CHANGE,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "logout_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 147,

                    "text" : uiScriptLocale.SYSTEM_LOGOUT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "exit_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 187,

                    "text" : uiScriptLocale.SYSTEM_EXIT,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
                {
                    "name" : "cancel_button",
                    "type" : "button",

                    "x" : 10,
                    "y" : 217,

                    "text" : uiScriptLocale.CANCEL,

                    "default_image" : ROOT + "XLarge_Button_01.sub",
                    "over_image" : ROOT + "XLarge_Button_02.sub",
                    "down_image" : ROOT + "XLarge_Button_03.sub",
                },
            ),
        },
    ),
}
uisystem.py den kaldırdınızmı
 
Hayır kaldırmamıştım şunları sildim sorunum çözüldü teşekkürler
Python:
Genişlet Daralt Kopyala
def __ClickInGameShopButton(self):
    self.Close()
    net.SendChatPacket("/in_game_mall")

    if constInfo.IN_GAME_SHOP_ENABLE:
    self.GetChild("mall_button").SAFE_SetEvent(self.__ClickInGameShopButton)
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst