Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Jest ktoś, kto umiałby dodać okno statów by Troll do Aion Interface System?


Gość Teils2

Rekomendowane odpowiedzi

Opublikowano

Cześć, zwracam się do Was z kolejną prośbą:


Menu wyboru postaci Aion Interface System nie zawiera okna statystyk (czasu grania na postaci, siły, inty itp.)


I pytanie czy ktoś umiałby dodać okno statystyk od Troll'a?



selectcharacterwindow.py - od trolla (staty)


import uiScriptLocale



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

LOCALE_PATH = uiScriptLocale.SELECT_PATH


BOARD_X = SCREEN_WIDTH * (65) / 800

BOARD_Y = SCREEN_HEIGHT * (220) / 600


BOARD_ITEM_ADD_POSITION = -40


window = {

"name" : "SelectCharacterWindow",


"x" : 0,

"y" : 0,


"width" : SCREEN_WIDTH,

"height" : SCREEN_HEIGHT,


"children" :

(

## Board

{

"name" : "BackGround", "type" : "expanded_image", "x" : 0, "y" : 0,

"x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,

"image" : "locale/de/ui/select.sub",

},

## Name

{

"name" : "name_warrior",

"type" : "image",


"x" : BOARD_X - 20,

"y" : BOARD_Y - 110 + 25,


"image" : LOCALE_PATH+"name_warrior.sub",

},

{

"name" : "name_assassin",

"type" : "image",


"x" : BOARD_X - 20,

"y" : BOARD_Y - 110 + 25,


"image" : LOCALE_PATH+"name_assassin.sub",

},

{

"name" : "name_sura",

"type" : "image",


"x" : BOARD_X - 20,

"y" : BOARD_Y - 110 + 25,


"image" : LOCALE_PATH+"name_sura.sub",

},

{

"name" : "name_shaman",

"type" : "image",


"x" : BOARD_X - 20,

"y" : BOARD_Y - 110 + 25,


"image" : LOCALE_PATH+"name_shaman.sub",

},



## Character Board by .Temperies and Troll

{

"name" : "character_board",

"type" : "image",


"x" : SCREEN_WIDTH * (55) / 1900,

"y" : SCREEN_HEIGHT * (220) / 280,


"width" : 500,

"height" : 100 + BOARD_ITEM_ADD_POSITION,

"image" : "troll/trolljob2.sub",

"children" :

(


## Empire Flag

{

"name" : "EmpireFlag_A",

"type" : "expanded_image",


"x" : 193,

"y" : 5,



"image" : "troll/trollempire2.sub"

},

{

"name" : "EmpireFlag_B",

"type" : "expanded_image",


"x" : 193,

"y" : 5,



"image" : "troll/trollempire1.sub"

},


{

"name" : "EmpireFlag_C",

"type" : "expanded_image",


"x" : 193,

"y" : 5,


"image" : "troll/trollempire3.sub"

},


{

"name" : "EmpireNameSlot",

"type" : "image",


"x" : 220,

"y" : 58,


"image" : "",


"children" :

(

{

"name" : "EmpireName",

"type" : "text",


"x" : 0,

"y" : 0,


"color" : 0xff99FF00,


"text" : uiScriptLocale.SELECT_EMPIRE_NAME,


"all_align" : "center",

},

),

},


{

"name" : "GuildNameSlot",

"type" : "image",


"x" : 438,

"y" : 58,


"image" : "",


"children" :

(

{

"name" : "GuildName",

"type" : "text",


"x" : 0,

"y" : 0,

"color" : 0xff99FF00,

"text" : uiScriptLocale.SELECT_NO_GUILD,


"all_align" : "center",

},

{

"name" : "Gremio",

"type" : "text",


"x" : - 60,

"y" : 0,

"color" : 0xffFFFFFF,

"text" : "Gilde:",


"all_align" : "center",

},

),

},


{

"name" : "character_name",

"type" : "text",


"x" : 125,

"y" : 75,


"text" : uiScriptLocale.SELECT_NAME + ":",


"children" :

(

{

"name" : "character_name_slot",

"type" : "image",


"x" : 150,

"y" : 75,


"image" : "",

},

{

"name" : "character_name_value",

"type" : "text",


"x" : 10 + 130/2,

"y" : 0,

"color" : 0xffFFCA00,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_name_slot",

"type" : "image",


"x" : 43,

"y" : -2,


"image" : "",

},

{

"name" : "character_name_slot",

"type" : "text",


"x" : 550,

"y" : 54,


"text" : "Charakterauswahl",


"text_horizontal_align" : "center",

},

{

"name" : "character_level",

"type" : "text",


"x" : 125,

"y" : 85,


"text" : uiScriptLocale.SELECT_LEVEL + ":",


"children" :

(

{

"name" : "character_level_slot",

"type" : "image",


"x" : 43,

"y" : -2,


"image" : "",

},

{

"name" : "character_level_value",

"type" : "text",


"x" : 10 + 130/2,

"y" : 0,

"color" : 0xff99FF00,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_play_time",

"type" : "text",


"x" : 125,

"y" : 95,


"text" : uiScriptLocale.SELECT_PLAYTIME + ":",


"children" :

(

{

"name" : "character_play_time_slot",

"type" : "image",


"x" : 0,

"y" : 0,


"image" : "",

},

{

"name" : "character_play_time_value",

"type" : "text",


"x" : 95,

"y" : 0,

"color" : 0xffD2F700,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_hth",

"type" : "text",


"x" : 245,

"y" : 74,


"text" : uiScriptLocale.SELECT_HP,


"children" :

(

{

"name" : "gauge_hth",

"type" : "gauge",


"x" : 20,

"y" : 4,


"width" : 100,

"color" : "red",

},

{

"name" : "character_hth_slot",

"type" : "image",


"x" : 134,

"y" : -2,


"color" : 0xffFF0000,

"image" : "",

},

{

"name" : "character_hth_value",

"type" : "text",


"x" : 131,

"y" : 0,

"color" : 0xffFF0000,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_int",

"type" : "text",


"x" : 245,

"y" : 84,


"text" : uiScriptLocale.SELECT_SP,


"children" :

(

{

"name" : "gauge_int",

"type" : "gauge",


"x" : 20,

"y" : 4,


"width" : 100,

"color" : "pink",

},

{

"name" : "character_int_slot",

"type" : "image",


"x" : 95,

"y" : 0,


"image" : "",

},

{

"name" : "character_int_value",

"type" : "text",


"x" : 132,

"y" : 0,

"color" : 0xffE366B4,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_str",

"type" : "text",


"x" : 245,

"y" : 94,


"text" : uiScriptLocale.SELECT_ATT_GRADE,


"children" :

(

{

"name" : "gauge_str",

"type" : "gauge",


"x" : 20,

"y" : 4,


"width" : 100,

"color" : "purple",

},

{

"name" : "character_str_slot",

"type" : "image",


"x" : 15,

"y" : 0,


"image" : "",

},

{

"name" : "character_str_value",

"type" : "text",


"x" : 132,

"y" : 0,

"color" : 0xffCD35D2,

"text" : "",


"text_horizontal_align" : "center",

},

),

},

{

"name" : "character_dex",

"type" : "text",


"x" : 245,

"y" : 104,


"text" : uiScriptLocale.SELECT_DEX_GRADE,


"children" :

(

{

"name" : "gauge_dex",

"type" : "gauge",


"x" : 20,

"y" : 4,


"width" : 100,

"color" : "blue",

},

{

"name" : "character_dex_slot",

"type" : "image",


"x" : 15,

"y" : 0,


"image" : "",

},

{

"name" : "character_dex_value",

"type" : "text",


"x" : 132,

"y" : 0,

"color" : 0xff0A67A3,

"text" : "",


"text_horizontal_align" : "center",

},

),

},


## Buttons

{

"name" : "start_button",

"type" : "button",


"x" : 495,

"y" : 75,


"text" : uiScriptLocale.SELECT_SELECT,

"text_height" : 6,


"default_image" : ROOT_PATH + "XLarge_Button_01.sub",

"over_image" : ROOT_PATH + "XLarge_Button_02.sub",

"down_image" : ROOT_PATH + "XLarge_Button_03.sub",

},

{

"name" : "create_button",

"type" : "button",


"x" : 450,

"y" : 75,


"text" : uiScriptLocale.SELECT_CREATE,

"text_height" : 6,


"default_image" : ROOT_PATH + "XLarge_Button_01.sub",

"over_image" : ROOT_PATH + "XLarge_Button_02.sub",

"down_image" : ROOT_PATH + "XLarge_Button_03.sub",

},

{

"name" : "exit_button",

"type" : "button",


"x" : 495,

"y" : 99,


"text" : uiScriptLocale.SELECT_EXIT,


"default_image" : ROOT_PATH + "Large_Button_01.sub",

"over_image" : ROOT_PATH + "Large_Button_02.sub",

"down_image" : ROOT_PATH + "Large_Button_03.sub",

},

{

"name" : "delete_button",

"type" : "button",


"x" : 587,

"y" : 99,


"text" : uiScriptLocale.SELECT_DELETE,


"default_image" : ROOT_PATH + "Large_Button_01.sub",

"over_image" : ROOT_PATH + "Large_Button_02.sub",

"down_image" : ROOT_PATH + "Large_Button_03.sub",

},

),

},


## Buttons

{

"name" : "left_button",

"type" : "button",


"x" : SCREEN_WIDTH * (300 - 22*3) / 800,

"y" : SCREEN_HEIGHT * (3505) / 7900,


"default_image" : "d:/ymir work/ui/intro/select/dragon_left_button_01.sub",

"over_image" : "d:/ymir work/ui/intro/select/dragon_left_button_02.sub",

"down_image" : "d:/ymir work/ui/intro/select/dragon_left_button_03.sub",

},

{

"name" : "right_button",

"type" : "button",


"x" : SCREEN_WIDTH * (680 - 22) / 800,

"y" : SCREEN_HEIGHT * (3505) / 7800,


"default_image" : "d:/ymir work/ui/intro/select/dragon_right_button_01.sub",

"over_image" : "d:/ymir work/ui/intro/select/dragon_right_button_02.sub",

"down_image" : "d:/ymir work/ui/intro/select/dragon_right_button_03.sub",

},



),

}


 




selectcharacterwindow.py - od wyboru postaci



import uiScriptLocale



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

LOCALE_PATH = uiScriptLocale.SELECT_PATH

BUTTON_PATH = uiScriptLocale.LOGIN_PATH


BOARD_X = SCREEN_WIDTH * (65) / 800

BOARD_Y = SCREEN_HEIGHT * (220) / 600


window = {

"name" : "SelectCharacterWindow",


"x" : 0,

"y" : 0,


"width" : SCREEN_WIDTH,

"height" : SCREEN_HEIGHT,


"children" :

(

## Board

{

"name" : "BackGround", "type" : "expanded_image", "x" : 0, "y" : 0,

"x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,

"image" : "locale/ro/ui/select.sub",

},

{

"name" : "Frames", "type" : "expanded_image", "x" : 0, "y" : 0,

"x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,

"image" : "locale/ro/ui/frames.tga",

},


## Buttons

{

"name" : "slot_button_01",

"type" : "button",


"x" : SCREEN_WIDTH * (125 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_01.sub",

"over_image" : LOCALE_PATH+"select_button_02.sub",

"down_image" : LOCALE_PATH+"select_button_02.sub",


"children" :

(

{

"name" : "character_level_value_01",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_01",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_01",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_02",

"type" : "button",


"x" : SCREEN_WIDTH * (250 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_01.sub",

"over_image" : LOCALE_PATH+"select_button_02.sub",

"down_image" : LOCALE_PATH+"select_button_02.sub",


"children" :

(

{

"name" : "character_level_value_02",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_02",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_02",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_03",

"type" : "button",


"x" : SCREEN_WIDTH * (375 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_01.sub",

"over_image" : LOCALE_PATH+"select_button_02.sub",

"down_image" : LOCALE_PATH+"select_button_02.sub",


"children" :

(

{

"name" : "character_level_value_03",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_03",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_03",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_04",

"type" : "button",


"x" : SCREEN_WIDTH * (500 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_01.sub",

"over_image" : LOCALE_PATH+"select_button_02.sub",

"down_image" : LOCALE_PATH+"select_button_02.sub",


"children" :

(

{

"name" : "character_level_value_04",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_04",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_04",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_01_active",

"type" : "button",


"x" : SCREEN_WIDTH * (125 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_03.sub",

"over_image" : LOCALE_PATH+"select_button_03.sub",

"down_image" : LOCALE_PATH+"select_button_03.sub",


"children" :

(

{

"name" : "character_level_value_01_a",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_01_a",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_01_a",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_02_active",

"type" : "button",


"x" : SCREEN_WIDTH * (250 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_03.sub",

"over_image" : LOCALE_PATH+"select_button_03.sub",

"down_image" : LOCALE_PATH+"select_button_03.sub",


"children" :

(

{

"name" : "character_level_value_02_a",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_02_a",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_02_a",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_03_active",

"type" : "button",


"x" : SCREEN_WIDTH * (375 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_03.sub",

"over_image" : LOCALE_PATH+"select_button_03.sub",

"down_image" : LOCALE_PATH+"select_button_03.sub",


"children" :

(

{

"name" : "character_level_value_03_a",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_03_a",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_03_a",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},

{

"name" : "slot_button_04_active",

"type" : "button",


"x" : SCREEN_WIDTH * (500 + 50) / 800,

"y" : SCREEN_HEIGHT * (455) / 600,


"default_image" : LOCALE_PATH+"select_button_03.sub",

"over_image" : LOCALE_PATH+"select_button_03.sub",

"down_image" : LOCALE_PATH+"select_button_03.sub",


"children" :

(

{

"name" : "character_level_value_04_a",

"type" : "text",


"x" : 45,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_race_value_04_a",

"type" : "text",


"x" : 75,

"y" : 15,


"text" : "",

"fontsize" : "LARGE",

},

{

"name" : "character_name_value_04_a",

"type" : "text",


"x" : 76.5,

"y" : 51,


"text" : "",

"fontsize" : "LARGE",

"text_horizontal_align" : "center"

},

),

},


## Frames

#{

# "name" : "TopFrame01",

# "type" : "expanded_image",


# "x" : SCREEN_WIDTH / 800 + 30,

# "y" : SCREEN_HEIGHT / 600,


# "x_scale" : 0.8,

# "y_scale" : 0.8,


# "image" : LOCALE_PATH+"frame_top_01.sub",

#},

#{

# "name" : "TopFrame02",

# "type" : "expanded_image",


# "x" : SCREEN_WIDTH / 800 + 30 + 654,

# "y" : SCREEN_HEIGHT / 600,


# "x_scale" : 0.8,

# "y_scale" : 0.8,


# "image" : LOCALE_PATH+"frame_top_02.sub",

#},

#{

# "name" : "BottomFrame01",

# "type" : "expanded_image",


# "x" : SCREEN_WIDTH / 800 + 30,

# "y" : SCREEN_HEIGHT - 98,


# "x_scale" : 0.8,

# "y_scale" : 0.8,


# "image" : LOCALE_PATH+"frame_bottom_01.sub",

#},

#{

# "name" : "BottomFrame02",

# "type" : "expanded_image",


# "x" : SCREEN_WIDTH / 800 + 30 + 654,

# "y" : SCREEN_HEIGHT - 98,


# "x_scale" : 0.8,

# "y_scale" : 0.8,


# "image" : LOCALE_PATH+"frame_bottom_02.sub",

#},


## Bottom Frame Buttons

{

"name" : "start_button",

"type" : "button",


"x" : SCREEN_WIDTH * (280) / 800,

"y" : SCREEN_HEIGHT * (568) / 600,


"text" : uiScriptLocale.SELECT_SELECT,


"default_image" : BUTTON_PATH + "button_01.sub",

"over_image" : BUTTON_PATH + "button_02.sub",

"down_image" : BUTTON_PATH + "button_03.sub",

"disable_image" : BUTTON_PATH + "button_04.sub",

},

{

"name" : "create_button",

"type" : "button",


"x" : SCREEN_WIDTH * (280) / 800 + 90,

"y" : SCREEN_HEIGHT * (568) / 600,


"text" : uiScriptLocale.SELECT_CREATE,


"default_image" : BUTTON_PATH + "button_01.sub",

"over_image" : BUTTON_PATH + "button_02.sub",

"down_image" : BUTTON_PATH + "button_03.sub",

"disable_image" : BUTTON_PATH + "button_04.sub",

},

{

"name" : "delete_button",

"type" : "button",


"x" : SCREEN_WIDTH * (280) / 800 + 180,

"y" : SCREEN_HEIGHT * (568) / 600,


"text" : uiScriptLocale.SELECT_DELETE,


"default_image" : BUTTON_PATH + "button_01.sub",

"over_image" : BUTTON_PATH + "button_02.sub",

"down_image" : BUTTON_PATH + "button_03.sub",

"disable_image" : BUTTON_PATH + "button_04.sub",

},

{

"name" : "exit_button",

"type" : "button",


"x" : SCREEN_WIDTH * (280) / 800 + 270,

"y" : SCREEN_HEIGHT * (568) / 600,


"text" : uiScriptLocale.SELECT_EXIT,


"default_image" : BUTTON_PATH + "button_01.sub",

"over_image" : BUTTON_PATH + "button_02.sub",

"down_image" : BUTTON_PATH + "button_03.sub",

},

),

}


 





Obrazkowe tłumaczenie:


is6s.jpg

 




Za pomoc masa +++ :D


Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...