Bvural41 1
Bvural41
Hikaye Ekle

Cevaplanmadı esc menüsü yardım acilll

  • Konuyu başlatan Konuyu başlatan silici311
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 10
  • Görüntüleme Görüntüleme 1K
arkadaşlar oyunun esc menüsünde nesne market butonu yoktu ben onu ekledim en alta fakat işlevi yok yardımcı olabilecek kimse varmı
 
Systemdialog.py'nizi de ekleyebilir misiniz ?
iki farklı system dialog var ikisinide ekledim

[CODE title="uisicript systemdialog"]import uiScriptLocale

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

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

"x" : SCREEN_WIDTH/2 - 100,
"y" : SCREEN_HEIGHT/2 - 114,

"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",
},
{
"name" : "mall_button",
"type" : "button",

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

"text" : uiScriptLocale.SYSTEM_MALL,
"text_color" : 0xffF8BF24,

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

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

"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" : 117,

"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" : 147,

"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" : 177,

"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" : 217,

"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" : 247,

"text" : uiScriptLocale.CANCEL,

"default_image" : ROOT + "XLarge_Button_01.sub",
"over_image" : ROOT + "XLarge_Button_02.sub",
"down_image" : ROOT + "XLarge_Button_03.sub",
},
),
},
),
}
[/CODE]
[CODE title="locale-tr systemdialog"]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",
},
{
"name" : "mall_button",
"type" : "button",

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

"text" : uiScriptLocale.SYSTEM_MALL,
"text_color" : 0xffF8BF24,

"default_image" : ROOT + "XLarge_Button_02.sub",
"over_image" : ROOT + "XLarge_Button_02.sub",
"down_image" : ROOT + "XLarge_Button_02.sub",
},

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

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

"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" : 117,

"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" : 147,

"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" : 177,

"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" : 217,

"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" : 247,

"text" : uiScriptLocale.CANCEL,

"default_image" : ROOT + "XLarge_Button_01.sub",
"over_image" : ROOT + "XLarge_Button_02.sub",
"down_image" : ROOT + "XLarge_Button_03.sub",
},
),
},
),
}
[/CODE]
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst