Dynamic Things Posted January 17, 2017 at 04:52 PM Share Posted January 17, 2017 at 04:52 PM Olá boa tarde. Comecei a aprender Python a algum tempo atrás, comecei a fazer algumas interfaces para ir praticando o que ia aprendendo e para conhecer novas questões e assim resolve-las, ultimamente tenho uma duvida que ainda não consegui ultrapassar, decidi criar este tópico a saber se já existe alguém que ande na área da programação (Linguagem Python) que tenha passado pelo mesmo problema que eu e que queira partilhar comigo e com o resto da comunidade a possível solução. Passando ao ao problema: Pequei num design já existente (porque o meu conhecimento com ferramentas de design é simplesmente horrível) , comecei a fazer o código do mesmo (mesmo sabendo que existe alguns servidores que compraram o código da mesma e a usam). O erro acontece ao tentar mudar de canal ou carregar nas opções entrar ou sair (sim tem duas vezes sair porque ainda não converti a imagem do sair para o seu devido formato.), não selecciona as opções, mas isso só acontece depois de tentar introduzir os canais assim como as opções de sair e entrar como "children", porque consigo meter os botões a funcionar caso o escreva como grupo independentes, mas ao deixar o grupo independente ao mudar de resolução as opções ficam fora do lugar correcto, e ao estar dentro do grupo da imagem dos inputs de login não ficam fora do sitio caso mude de dimensões mas também não dão para seleccionar como referi a cima. (deixo aqui o código caso ajude a alguém a pensar em como me ajudar.) ##################################################### # Create by Dynamic Things # # Website: http://www.dynamicthings.top/ # # Skype: Dynamic Things # ##################################################### import uiScriptLocale DYNAMIC_THINGS_WORKS = "dynamicthings/imagens/login/" window = { "name" : "LoginWindow", "sytle" : ("movable",), "x" : 0, "y" : 0, "width" : SCREEN_WIDTH, "height" : SCREEN_HEIGHT, "children" : ( { "name" : "bg1", "type" : "expanded_image", "x" : 0, "y" : 0, "x_scale" : float(SCREEN_WIDTH) / 1280.0, "y_scale" : float(SCREEN_HEIGHT) / 720.0, "image" : DYNAMIC_THINGS_WORKS+"dthings_fundo.tga", }, { "name" : "ImageBoard", "type" : "image", "x" : 0, "y" : -10, "x_scale" : 0.8, "y_scale" : 0.8, "horizontal_align" : "center", "vertical_align" : "center", "image" : DYNAMIC_THINGS_WORKS + "campos_login.tga", "children": ( { "name" : "ID_EditLine", "type" : "editline", "x" : 35, "y" : 52, "width" : 130, "height" : 25, "input_limit" : 20, "enable_codepage" : 0, "color": 0xFFFCEF8C, }, { "name" : "Password_EditLine", "type" : "editline", "x" : 35, "y" : 120, "width" : 130, "height" : 25, "input_limit" : 20, "secret_flag" : 1, "enable_codepage" : 0, "color": 0xFFFCEF8C, }, { "name" : "channel_1_button", "type" : "radio_button", "x" : -20, "y" : 155, "default_image" : DYNAMIC_THINGS_WORKS +"ch_1_normal.tga", "over_image" :DYNAMIC_THINGS_WORKS +"ch_1_normal.tga", "down_image" : DYNAMIC_THINGS_WORKS +"ch_1_select.tga", }, { "name" : "channel_2_button", "type" : "radio_button", "x" : 60, "y" : 155, "default_image" : DYNAMIC_THINGS_WORKS +"ch_2_normal.tga", "over_image" :DYNAMIC_THINGS_WORKS +"ch_2_normal.tga", "down_image" : DYNAMIC_THINGS_WORKS +"ch_2_select.tga", }, { "name" : "channel_3_button", "type" : "radio_button", "x" : 140, "y" : 155, "default_image" : DYNAMIC_THINGS_WORKS +"ch_3_normal.tga", "over_image" :DYNAMIC_THINGS_WORKS +"ch_3_normal.tga", "down_image" : DYNAMIC_THINGS_WORKS +"ch_3_select.tga", }, { "name" : "channel_4_button", "type" : "radio_button", "x" : 220, "y" : 155, "default_image" : DYNAMIC_THINGS_WORKS +"ch_4_normal.tga", "over_image" :DYNAMIC_THINGS_WORKS +"ch_4_normal.tga", "down_image" : DYNAMIC_THINGS_WORKS +"ch_4_select.tga", }, { "name" : "sair_button", "type" : "button", "x" : 140, "y" : 225, "default_image" : DYNAMIC_THINGS_WORKS+"iniciar_normal.tga", "over_image" : DYNAMIC_THINGS_WORKS+"iniciar_ativo.tga", "down_image" : DYNAMIC_THINGS_WORKS+"iniciar_normal.tga", }, { "name" : "start_button", "type" : "button", "x" : 0, "y" : 225, "default_image" : DYNAMIC_THINGS_WORKS+"iniciar_normal.tga", "over_image" : DYNAMIC_THINGS_WORKS+"iniciar_ativo.tga", "down_image" : DYNAMIC_THINGS_WORKS+"iniciar_normal.tga", }, ), }, ), } No entanto a interface (Seleccionar personagem, Criar Personagem, Seleccionar Reino e Login) já está acabada com excepção do problema que partilho neste tópico. Cumprimentos, Dynamic Things Link to comment Share on other sites More sharing options...
Marco Posted January 17, 2017 at 05:29 PM Share Posted January 17, 2017 at 05:29 PM Vê o tamanho das imagens, se as de "cima" tiverem uma dimensão maior a de "baixo" perde a função. Não sei se me fiz entender. Link to comment Share on other sites More sharing options...
Dynamic Things Posted January 17, 2017 at 05:44 PM Author Share Posted January 17, 2017 at 05:44 PM Vê o tamanho das imagens, se as de "cima" tiverem uma dimensão maior a de "baixo" perde a função. Não sei se me fiz entender. foi o que pensei que as imagens a pudessem estar a cima das funções mas já verifiquei e não é por isso Link to comment Share on other sites More sharing options...
Marco Posted January 18, 2017 at 08:35 AM Share Posted January 18, 2017 at 08:35 AM foi o que pensei que as imagens a pudessem estar a cima das funções mas já verifiquei e não é por isso É só numa "x" resolução ou em todas? Link to comment Share on other sites More sharing options...
Dynamic Things Posted January 18, 2017 at 04:02 PM Author Share Posted January 18, 2017 at 04:02 PM Em todas, porque ao estar tudo no mesmo grupo mudando de resolução ou não os botões do login, canais, etc não se vão mexer, se mover 1 movem todos Link to comment Share on other sites More sharing options...
Marco Posted January 18, 2017 at 05:22 PM Share Posted January 18, 2017 at 05:22 PM Em todas, porque ao estar tudo no mesmo grupo mudando de resolução ou não os botões do login, canais, etc não se vão mexer, se mover 1 movem todos vou usar o teu cod e testar, já digo algo ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now