Não o data/images/ui
Eu acho más é aquele onde pomos nossos itens,pokeballs etc.
mais oque isso tem a ver com minha duvida ? kk
Por Developer Berg, 30 de out. de 2015 em Clients
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

Não o data/images/ui
Eu acho más é aquele onde pomos nossos itens,pokeballs etc.
mais oque isso tem a ver com minha duvida ? kk
info
Grupo: Visconde
Registrado: 23/02/13
Posts: 437
Reputação: +71
Gênero: Masculino

@ricardoberg teria como vc postar o otui do seu modulo?
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

@ricardoberg teria como vc postar o otui do seu modulo?
CharacterWidget < UIWidget
height: 14
background-color: alpha
&updateOnStates: |
function(self)
local children = self:getChildren()
for i=1,#children do
children[i]:setOn(self:isFocused())
end
end
@onFocusChange: self:updateOnStates()
@onSetup: self:updateOnStates()
$focus:
background-color: #ffffff22
Label
id: name
color: green
anchors.top: parent.top
anchors.left: parent.left
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
text-offset: 2 0
$on:
color: #ffffff
Label
id: worldName
color: #ffffff
color: #aaaaaa
anchors.top: parent.top
anchors.right: parent.right
margin-right: 5
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
&baseText: '(%s)'
$on:
color: #ffffff
MainWindow
id: charactersWindow
size: 640 322
image-source: character.png
image-border: 0
visible: false
@onEnter: CharacterList.doLogin()
@onEscape: CharacterList.hide(true)
@onSetup: |
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
Creature
size: 150 150
id: outfitCreatureBox
anchors.top: parent.top
anchors.left: parent.left
margin-top: 26
margin-left: 147
padding: 4 4 4 4
fixed-creature-size: true
TextList
size: 138 90
id: characters
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: parent.bottom
margin-bottom: 10
margin-left: 3
margin-top: 26
padding: 1
focusable: false
vertical-scrollbar: characterListScrollBar
auto-focus: first
VerticalScrollBar
id: characterListScrollBar
anchors.top: parent.top
margin-top: 25
anchors.bottom: characters.bottom
anchors.right: characters.left
step: 14
pixels-scroll: true
Label
id: accountStatusLabel
color: green
!text: tr('Free Account')
anchors.left: characters.right
anchors.bottom: parent.bottom
margin-left: 8
margin-bottom: 35
text-auto-resize: true
$on:
color: #FF0000
//CheckBox
// id: charAutoLoginBox
// !text: tr('Auto login')
// !tooltip: tr('Auto login selected character on next charlist load')
// anchors.left: parent.left
// anchors.right: outfitCreatureBox.left
// anchors.bottom: next.top
// margin-bottom: 6
// margin-left: 18
// margin-right: 18
Button
id: buttonOk
!text: tr('Ok')
width: 200
anchors.right: next.left
anchors.bottom: parent.bottom
margin-right: 50
@onClick: CharacterList.doLogin()
Button
id: buttonCancel
!text: tr('Cancel')
width: 200
anchors.right: parent.right
margin-right: -5
anchors.bottom: parent.bottom
@onClick: CharacterList.hide(true)
Label
id: namelabel
text: Name: Character name
color: green
anchors.left: characters.right
anchors.top: outfitCreatureBox.top
margin-top: 160
margin-left: 8
text-auto-resize: true
Label
id: levellabel
text: Level:
color: green
anchors.left: characters.right
anchors.top: namelabel.bottom
margin-top: 8
margin-left: 8
text-auto-resize: true
se vc conseguir, libera pfv, to precisando desse module, aqui ta aparecendo outfits aleatorias
Editado Janeiro 15 por ricardoberg
info
Grupo: Visconde
Registrado: 23/02/13
Posts: 437
Reputação: +71
Gênero: Masculino

assim o local aonde aparece akele poke vai sumir
CharacterWidget < UIWidget
height: 14
background-color: alpha
&updateOnStates: |
function(self)
local children = self:getChildren()
for i=1,#children do
children[i]:setOn(self:isFocused())
end
end
@onFocusChange: self:updateOnStates()
@onSetup: self:updateOnStates()
$focus:
background-color: #ffffff22
Label
id: name
color: green
anchors.top: parent.top
anchors.left: parent.left
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
text-offset: 2 0
$on:
color: #ffffff
Label
id: worldName
color: #ffffff
color: #aaaaaa
anchors.top: parent.top
anchors.right: parent.right
margin-right: 5
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
&baseText: '(%s)'
$on:
color: #ffffff
MainWindow
id: charactersWindow
size: 640 322
image-source: character.png
image-border: 0
visible: false
@onEnter: CharacterList.doLogin()
@onEscape: CharacterList.hide(true)
@onSetup: |
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
Creature
size: 150 150
id: outfitCreatureBox
anchors.top: parent.top
anchors.left: parent.left
margin-top: 26
margin-left: 147
padding: 4 4 4 4
fixed-creature-size: true
visible: false
TextList
size: 138 90
id: characters
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: parent.bottom
margin-bottom: 10
margin-left: 3
margin-top: 26
padding: 1
focusable: false
vertical-scrollbar: characterListScrollBar
auto-focus: first
VerticalScrollBar
id: characterListScrollBar
anchors.top: parent.top
margin-top: 25
anchors.bottom: characters.bottom
anchors.right: characters.left
step: 14
pixels-scroll: true
Label
id: accountStatusLabel
color: green
!text: tr('Free Account')
anchors.left: characters.right
anchors.bottom: parent.bottom
margin-left: 8
margin-bottom: 35
text-auto-resize: true
$on:
color: #FF0000
//CheckBox
// id: charAutoLoginBox
// !text: tr('Auto login')
// !tooltip: tr('Auto login selected character on next charlist load')
// anchors.left: parent.left
// anchors.right: outfitCreatureBox.left
// anchors.bottom: next.top
// margin-bottom: 6
// margin-left: 18
// margin-right: 18
Button
id: buttonOk
!text: tr('Ok')
width: 200
anchors.right: next.left
anchors.bottom: parent.bottom
margin-right: 50
@onClick: CharacterList.doLogin()
Button
id: buttonCancel
!text: tr('Cancel')
width: 200
anchors.right: parent.right
margin-right: -5
anchors.bottom: parent.bottom
@onClick: CharacterList.hide(true)
Label
id: namelabel
text: Name: Character name
color: green
anchors.left: characters.right
anchors.top: outfitCreatureBox.top
margin-top: 160
margin-left: 8
text-auto-resize: true
Label
id: levellabel
text: Level:
color: green
anchors.left: characters.right
anchors.top: namelabel.bottom
margin-top: 8
margin-left: 8
text-auto-resize: true
agora tem esse que na teoria e pr aparecer uma img no local da outfit porem nao testei ae vc tem q testar
CharacterWidget < UIWidget
height: 14
background-color: alpha
&updateOnStates: |
function(self)
local children = self:getChildren()
for i=1,#children do
children[i]:setOn(self:isFocused())
end
end
@onFocusChange: self:updateOnStates()
@onSetup: self:updateOnStates()
$focus:
background-color: #ffffff22
Label
id: name
color: green
anchors.top: parent.top
anchors.left: parent.left
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
text-offset: 2 0
$on:
color: #ffffff
Label
id: worldName
color: #ffffff
color: #aaaaaa
anchors.top: parent.top
anchors.right: parent.right
margin-right: 5
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
&baseText: '(%s)'
$on:
color: #ffffff
MainWindow
id: charactersWindow
size: 640 322
image-source: character.png
image-border: 0
visible: false
@onEnter: CharacterList.doLogin()
@onEscape: CharacterList.hide(true)
@onSetup: |
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
UIButton
size: 150 150
id: outfitCreatureBox
anchors.top: parent.top
anchors.left: parent.left
margin-top: 26
margin-left: 147
padding: 4 4 4 4
image-source: /data/images/ui/player.png
visible: false
TextList
size: 138 90
id: characters
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: parent.bottom
margin-bottom: 10
margin-left: 3
margin-top: 26
padding: 1
focusable: false
vertical-scrollbar: characterListScrollBar
auto-focus: first
VerticalScrollBar
id: characterListScrollBar
anchors.top: parent.top
margin-top: 25
anchors.bottom: characters.bottom
anchors.right: characters.left
step: 14
pixels-scroll: true
Label
id: accountStatusLabel
color: green
!text: tr('Free Account')
anchors.left: characters.right
anchors.bottom: parent.bottom
margin-left: 8
margin-bottom: 35
text-auto-resize: true
$on:
color: #FF0000
//CheckBox
// id: charAutoLoginBox
// !text: tr('Auto login')
// !tooltip: tr('Auto login selected character on next charlist load')
// anchors.left: parent.left
// anchors.right: outfitCreatureBox.left
// anchors.bottom: next.top
// margin-bottom: 6
// margin-left: 18
// margin-right: 18
Button
id: buttonOk
!text: tr('Ok')
width: 200
anchors.right: next.left
anchors.bottom: parent.bottom
margin-right: 50
@onClick: CharacterList.doLogin()
Button
id: buttonCancel
!text: tr('Cancel')
width: 200
anchors.right: parent.right
margin-right: -5
anchors.bottom: parent.bottom
@onClick: CharacterList.hide(true)
Label
id: namelabel
text: Name: Character name
color: green
anchors.left: characters.right
anchors.top: outfitCreatureBox.top
margin-top: 160
margin-left: 8
text-auto-resize: true
Label
id: levellabel
text: Level:
color: green
anchors.left: characters.right
anchors.top: namelabel.bottom
margin-top: 8
margin-left: 8
text-auto-resize: true
Editado Janeiro 15 por Aberos
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

assim o local aonde aparece akele poke vai sumir
CharacterWidget < UIWidget height: 14 background-color: alpha &updateOnStates: | function(self) local children = self:getChildren() for i=1,#children do children[i]:setOn(self:isFocused()) end end @onFocusChange: self:updateOnStates() @onSetup: self:updateOnStates() $focus: background-color: #ffffff22 Label id: name color: green anchors.top: parent.top anchors.left: parent.left font: verdana-11px-monochrome text-auto-resize: true background-color: alpha text-offset: 2 0 $on: color: #ffffff Label id: worldName color: #ffffff color: #aaaaaa anchors.top: parent.top anchors.right: parent.right margin-right: 5 font: verdana-11px-monochrome text-auto-resize: true background-color: alpha &baseText: '(%s)' $on: color: #ffffff MainWindow id: charactersWindow size: 640 322 image-source: character.png image-border: 0 visible: false @onEnter: CharacterList.doLogin() @onEscape: CharacterList.hide(true) @onSetup: | g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self) g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self) Creature size: 150 150 id: outfitCreatureBox anchors.top: parent.top anchors.left: parent.left margin-top: 26 margin-left: 147 padding: 4 4 4 4 fixed-creature-size: true visible: false TextList size: 138 90 id: characters anchors.top: parent.top anchors.left: parent.left anchors.bottom: parent.bottom margin-bottom: 10 margin-left: 3 margin-top: 26 padding: 1 focusable: false vertical-scrollbar: characterListScrollBar auto-focus: first VerticalScrollBar id: characterListScrollBar anchors.top: parent.top margin-top: 25 anchors.bottom: characters.bottom anchors.right: characters.left step: 14 pixels-scroll: true Label id: accountStatusLabel color: green !text: tr('Free Account') anchors.left: characters.right anchors.bottom: parent.bottom margin-left: 8 margin-bottom: 35 text-auto-resize: true $on: color: #FF0000 //CheckBox // id: charAutoLoginBox // !text: tr('Auto login') // !tooltip: tr('Auto login selected character on next charlist load') // anchors.left: parent.left // anchors.right: outfitCreatureBox.left // anchors.bottom: next.top // margin-bottom: 6 // margin-left: 18 // margin-right: 18 Button id: buttonOk !text: tr('Ok') width: 200 anchors.right: next.left anchors.bottom: parent.bottom margin-right: 50 @onClick: CharacterList.doLogin() Button id: buttonCancel !text: tr('Cancel') width: 200 anchors.right: parent.right margin-right: -5 anchors.bottom: parent.bottom @onClick: CharacterList.hide(true) Label id: namelabel text: Name: Character name color: green anchors.left: characters.right anchors.top: outfitCreatureBox.top margin-top: 160 margin-left: 8 text-auto-resize: true Label id: levellabel text: Level: color: green anchors.left: characters.right anchors.top: namelabel.bottom margin-top: 8 margin-left: 8 text-auto-resize: trueagora tem esse que na teoria e pr aparecer uma img no local da outfit porem nao testei ae vc tem q testar
CharacterWidget < UIWidget height: 14 background-color: alpha &updateOnStates: | function(self) local children = self:getChildren() for i=1,#children do children[i]:setOn(self:isFocused()) end end @onFocusChange: self:updateOnStates() @onSetup: self:updateOnStates() $focus: background-color: #ffffff22 Label id: name color: green anchors.top: parent.top anchors.left: parent.left font: verdana-11px-monochrome text-auto-resize: true background-color: alpha text-offset: 2 0 $on: color: #ffffff Label id: worldName color: #ffffff color: #aaaaaa anchors.top: parent.top anchors.right: parent.right margin-right: 5 font: verdana-11px-monochrome text-auto-resize: true background-color: alpha &baseText: '(%s)' $on: color: #ffffff MainWindow id: charactersWindow size: 640 322 image-source: character.png image-border: 0 visible: false @onEnter: CharacterList.doLogin() @onEscape: CharacterList.hide(true) @onSetup: | g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self) g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self) UIButton size: 150 150 id: outfitCreatureBox anchors.top: parent.top anchors.left: parent.left margin-top: 26 margin-left: 147 padding: 4 4 4 4 image-source: /data/images/ui/player.png visible: false TextList size: 138 90 id: characters anchors.top: parent.top anchors.left: parent.left anchors.bottom: parent.bottom margin-bottom: 10 margin-left: 3 margin-top: 26 padding: 1 focusable: false vertical-scrollbar: characterListScrollBar auto-focus: first VerticalScrollBar id: characterListScrollBar anchors.top: parent.top margin-top: 25 anchors.bottom: characters.bottom anchors.right: characters.left step: 14 pixels-scroll: true Label id: accountStatusLabel color: green !text: tr('Free Account') anchors.left: characters.right anchors.bottom: parent.bottom margin-left: 8 margin-bottom: 35 text-auto-resize: true $on: color: #FF0000 //CheckBox // id: charAutoLoginBox // !text: tr('Auto login') // !tooltip: tr('Auto login selected character on next charlist load') // anchors.left: parent.left // anchors.right: outfitCreatureBox.left // anchors.bottom: next.top // margin-bottom: 6 // margin-left: 18 // margin-right: 18 Button id: buttonOk !text: tr('Ok') width: 200 anchors.right: next.left anchors.bottom: parent.bottom margin-right: 50 @onClick: CharacterList.doLogin() Button id: buttonCancel !text: tr('Cancel') width: 200 anchors.right: parent.right margin-right: -5 anchors.bottom: parent.bottom @onClick: CharacterList.hide(true) Label id: namelabel text: Name: Character name color: green anchors.left: characters.right anchors.top: outfitCreatureBox.top margin-top: 160 margin-left: 8 text-auto-resize: true Label id: levellabel text: Level: color: green anchors.left: characters.right anchors.top: namelabel.bottom margin-top: 8 margin-left: 8 text-auto-resize: true
deu erro aqui, o character list sumiu e deu esse erro
ERROR: failed to load UI from 'characterlist.otui': OTML error in '/client_entergame/characterlist.otui' at line 13: must indent every 2 spaces ERROR: /client_entergame/characterlist.lua:191: attempt to index upvalue 'charactersWindow' (a nil value)
info
Grupo: Visconde
Registrado: 23/02/13
Posts: 437
Reputação: +71
Gênero: Masculino

tenta agora
Editado Janeiro 15 por Aberos
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

tenta agora
CharacterWidget < UIWidgetheight: 14background-color: alpha&updateOnStates: |function(self)local children = self:getChildren()for i=1,#children dochildren:setOn(self:isFocused())endend@onFocusChange: self:updateOnStates()@onSetup: self:updateOnStates()$focus:background-color: #ffffff22Labelid: namecolor: greenanchors.top: parent.topanchors.left: parent.leftfont: verdana-11px-monochrometext-auto-resize: truebackground-color: alphatext-offset: 2 0$on:color: #ffffffLabelid: worldNamecolor: #ffffffcolor: #aaaaaaanchors.top: parent.topanchors.right: parent.rightmargin-right: 5font: verdana-11px-monochrometext-auto-resize: truebackground-color: alpha&baseText: '(%s)'$on:color: #ffffffMainWindowid: charactersWindowsize: 640 322image-source: character.pngimage-border: 0visible: false@onEnter: CharacterList.doLogin()@onEscape: CharacterList.hide(true)@onSetup: |g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)Creaturesize: 150 150id: outfitCreatureBoxanchors.top: parent.topanchors.left: parent.leftmargin-top: 26margin-left: 147padding: 4 4 4 4fixed-creature-size: truevisible: falseTextListsize: 138 90id: charactersanchors.top: parent.topanchors.left: parent.leftanchors.bottom: parent.bottommargin-bottom: 10margin-left: 3margin-top: 26padding: 1focusable: falsevertical-scrollbar: characterListScrollBarauto-focus: firstVerticalScrollBarid: characterListScrollBaranchors.top: parent.topmargin-top: 25anchors.bottom: characters.bottomanchors.right: characters.leftstep: 14pixels-scroll: trueLabelid: accountStatusLabelcolor: green!text: tr('Free Account')anchors.left: characters.rightanchors.bottom: parent.bottommargin-left: 8margin-bottom: 35text-auto-resize: true$on:color: #FF0000//CheckBox// id: charAutoLoginBox// !text: tr('Auto login')// !tooltip: tr('Auto login selected character on next charlist load')// anchors.left: parent.left// anchors.right: outfitCreatureBox.left// anchors.bottom: next.top// margin-bottom: 6// margin-left: 18// margin-right: 18Buttonid: buttonOk!text: tr('Ok')width: 200anchors.right: next.leftanchors.bottom: parent.bottommargin-right: 50@onClick: CharacterList.doLogin()Buttonid: buttonCancel!text: tr('Cancel')width: 200anchors.right: parent.rightmargin-right: -5anchors.bottom: parent.bottom@onClick: CharacterList.hide(true)Labelid: namelabeltext: Name: Character namecolor: greenanchors.left: characters.rightanchors.top: outfitCreatureBox.topmargin-top: 160margin-left: 8text-auto-resize: trueLabelid: levellabeltext: Level:color: greenanchors.left: characters.rightanchors.top: namelabel.bottommargin-top: 8margin-left: 8text-auto-resize: trueou tente baixar esse anexo
ae pegou, vlw
obg man ^^
info
Grupo: Visconde
Registrado: 23/02/13
Posts: 437
Reputação: +71
Gênero: Masculino

tipo tem esse que vc pode por uma img no lugar
e so procurar por
image-source: /data/images/game/skulls/skull_orange.png
e alterar o caminho para o caminho da sua img
posso marcar o topico como resolvido entao?
Editado Janeiro 15 por Aberos
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

tipo tem esse que vc pode por uma img no lugar
e so procurar por
image-source: /data/images/game/skulls/skull_orange.pnge alterar o caminho para o caminho da sua img
posso marcar o topico como resolvido entao?
sim pode, troquei de base e to usando uma base com source, depois vou criar outro tópico usando esse mesmo character list para implantar nas sources para aparecer a outift
info
Grupo: Conde
Registrado: 07/04/15
Posts: 926
Reputação: +335
Gênero: Masculino

Tópico movido para Tópicos Resolvidos (Clientes)
tem como respostar o modulo ?
info
Grupo: Artesão
Registrado: 02/07/15
Posts: 105
Reputação: +28
Gênero: Masculino
Não o data/images/ui
Eu acho más é aquele onde pomos nossos itens,pokeballs etc.