[Resolvido] Dialog Buttons
2 participantes
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
[Resolvido] Dialog Buttons
Duvida - Dialog Buttons |
- Qual a sua duvida:
Estou tendo problemas com as dialog buttons que eu criei:- Código:
DialogINI
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear Dialog[1]
Dialog - Change the title of Dialog[1] to |c001CE6B9Menu|r
Dialog - Create a dialog button for Dialog[1] labelled |c001CE6B9Criar nov...
Set DialogButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[1] labelled |c001CE6B9Usar cód...
Set DialogButton[2] = (Last created dialog Button)
-------- Dialog[2] --------
Dialog - Clear Dialog[2]
Dialog - Change the title of Dialog[2] to |c001CE6B9Criar nov...
Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9Homen|r
Set DialogButton[3] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9Mulher|r
Set DialogButton[4] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9< Voltar|r
Set DialogButton[5] = (Last created dialog Button)
- Código:
DialogEND
Events
Dialog - A dialog button is clicked for Dialog[2]
Dialog - A dialog button is clicked for Dialog[1]
Conditions
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to (==) DialogButton[3]
Then - Actions
Unit - Create 1 |c001CE6B9Classe: Iniciante|r (Homen) for (Triggering player) at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
Game - Display to (Player group((Owner of (Last created unit)))) the text: |c001CE6B9Bem vindo...
Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
Selection - Select (Last created unit) for (Owner of (Last created unit))
Set PlayerHeroi[(Player number of (Triggering player))] = (Last created unit)
Dialog - Hide Dialog[2] for (Triggering player)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to (==) DialogButton[4]
Then - Actions
Unit - Create 1 |c001CE6B9Classe: Iniciante|r (Mulher) for (Triggering player) at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
Game - Display to (Player group((Owner of (Last created unit)))) the text: |c001CE6B9Bem vindo...
Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
Selection - Select (Last created unit) for (Owner of (Last created unit))
Set PlayerHeroi[(Player number of (Triggering player))] = (Last created unit)
Dialog - Hide Dialog[2] for (Triggering player)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to (==) DialogButton[1]
Then - Actions
Dialog - Hide Dialog[1] for (Triggering player)
Dialog - Change the title of Dialog[2] to |c001CE6B9Criar nov...
Dialog - Show Dialog[2] for (Triggering player)
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to (==) DialogButton[2]
Then - Actions
Dialog - Hide Dialog[1] for (Triggering player)
Game - Display to (Player group((Triggering player))) the text: |c001CE6B9Digite ag...
Set PlayerLoad[(Player number of (Triggering player))] = True
Else - Actions
O problema é que eu clico em ''Criar novo Hero'' e o Dialog[2] não aparece!, o Dialog[2] é onde tem as opções ''Homen'' e ''Mulher'', mas a dialog não tá aparecendo '-' - Quais medidas tomou para resolvê-la: vi tutoriais em tudo que é lugar.
- Com qual frequência você usa o World Editor: Regularmente
- Experiência com triggers: Adepto
- Experiência com Jass: Nenhuma
Status da duvida: Resolvido
Última edição por gabrieeltucker em 2012-04-27, 16:25, editado 1 vez(es)
Re: [Resolvido] Dialog Buttons
Vá no seu Variable Editor (crtl+B) e procure pela variavel Dialog, veja se o Size é igual à 2.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31094
Re: [Resolvido] Dialog Buttons
lol, eu achei que o size não importava Oo
funcionou mano vlw, +REP
mas uma duvida:
como funciona essa de Size?
nas variables array, pra que serve o Size?
porque eu sempre deixo size 1 e uso
a variable em varias array e funfa deboa '-'
funcionou mano vlw, +REP
mas uma duvida:
como funciona essa de Size?
nas variables array, pra que serve o Size?
porque eu sempre deixo size 1 e uso
a variable em varias array e funfa deboa '-'
Re: [Resolvido] Dialog Buttons
De nada.
O size das variáveis array são para indicar quantos indices (aqueles valores dentro de colchetes "[ ]") vão ser iniciados.
Um exemplo, sua váriavel de Dialog, do tipo dialog, é de tamanho (size) 2 agora. Isso indica que o indice [1] e [2] iniciarão com 1 novo dialog neles. Já os indices restantes não terão nada gravados nas variaveis. Ah e o máximo de tamanho é 8192.
Tópico Fechado.
O size das variáveis array são para indicar quantos indices (aqueles valores dentro de colchetes "[ ]") vão ser iniciados.
Um exemplo, sua váriavel de Dialog, do tipo dialog, é de tamanho (size) 2 agora. Isso indica que o indice [1] e [2] iniciarão com 1 novo dialog neles. Já os indices restantes não terão nada gravados nas variaveis. Ah e o máximo de tamanho é 8192.
Tópico Fechado.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31094
Tópicos semelhantes
» [Tutorial] Dialog
» [Duvida] Dúvida dialog
» [Duvida] Flutuante texto
» [Resolvido] Renascer.
» [Resolvido] O que é MUI e GUI?
» [Duvida] Dúvida dialog
» [Duvida] Flutuante texto
» [Resolvido] Renascer.
» [Resolvido] O que é MUI e GUI?
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|