Acho que com imagens ficaria mais fácil entender, mas está muito bom, obrigado Banana!
- Fórum
- OTServ
- Tutoriais
- Tutoriais de Clients
- OtClient - Tutorial Básico #1
OtClient - Tutorial Básico #1
Por BananaFight, 24 de fev. de 2013 em Tutoriais de Clients
info
Grupo: Marquês
Registrado: 18/05/11
Posts: 1.1k
Reputação: +150
Gênero: Masculino

info
Grupo: Campones
Registrado: 07/03/14
Posts: 3
Reputação: 0

Me ajudou muito e tá de parabéns cara !
Só uma coisa, você é foda hehe
REP+
Muito Bom !! . Perfeito Conteudo Boa sorte e continue
info
Grupo: Campones
Registrado: 05/09/12
Posts: 60
Reputação: +15
Char no Tibia: Lawliet Tequilla

Parem de reviver os tópicos do meu programador particular, grato -q
cara amigo eu não entendi.
SkillFirstWidget < UIWidget
SkillButton < UIButton
height: 21
margin-bottom: 2
&onClick: onSkillButtonClick
SkillNameLabel < GameLabel
font: verdana-11px-monochrome
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
SkillValueLabel < GameLabel
id: value
font: verdana-11px-monochrome
text-align: topright
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: prev.left
SkillPercentPanel < ProgressBar
id: percent
background-color: green
height: 5
image-source: /modules/game_skills/img/skillprogress
image-border-left: 2
image-border-right: 3
margin-top: 15
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
phantom: false
MiniWindow
id: skillWindow
!text: tr('Skills')
height: 150
icon: /modules/game_skills/img/perfil_icon
@onClose: modules.game_skills.onMiniWindowClose()
&save: true
MiniWindowContents
padding-left: 5
padding-right: 5
layout: verticalBox
SkillButton
margin-top: 5
id: experience
height: 13
SkillValueLabel
width: 130
text-align: top
anchors.horizontalCenter: parent.horizontalCenter
margin-left: 15
UIButton
id: clanicon
width: 37
height: 36
image-source: /modules/game_skills/img/skillicon
anchors.top: parent.top
anchors.left: parent.left
SkillButton
margin-top: 5
id: experiencee
height: 13
SkillValueLabel
width: 130
font: sans-bold-16px
text-align: top
anchors.horizontalCenter: parent.horizontalCenter
margin-top: -6
margin-left: 15
SkillButton
id: level
SkillNameLabel
!text: tr('Experience')
SkillValueLabel
SkillPercentPanel
background-color: red
SkillButton
id: skillId6
SkillNameLabel
!text: tr('Fishing')
SkillValueLabel
SkillPercentPanel
SkillButton
id: skillId3
SkillNameLabel
!text: tr('Headbutt')
SkillValueLabel
SkillPercentPanel
SkillButton
id: health
height: 15
SkillNameLabel
!text: tr('Hit Points')
SkillValueLabel
visible: false
SkillButton
id: mana
height: 15
SkillNameLabel
!text: tr('Mana')
SkillValueLabel
visible: false
SkillButton
id: capacity
height: 15
SkillNameLabel
!text: tr('Capacity')
SkillValueLabel
visible: false
SkillButton
id: regenerationTime
SkillNameLabel
!text: tr('Regeneration Time')
SkillValueLabel
visible: false
SkillButton
id: offlineTraining
SkillNameLabel
!text: tr('Offline Training')
SkillValueLabel
SkillPercentPanel
visible: false
SkillButton
id: magiclevel
SkillNameLabel
!text: tr('Magic Level')
SkillValueLabel
SkillPercentPanel
background-color: red
visible: false
SkillButton
id: stamina
height: 15
SkillNameLabel
!text: tr('Stamina')
SkillValueLabel
margin-top: 8
HorizontalSeparator
height: 7
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: -6
SkillButton
id: soul
height: 15
SkillNameLabel
!text: tr('Soul Points')
SkillValueLabel
SkillButton
id: speed
height: 15
SkillNameLabel
!text: tr('Speed')
SkillValueLabel
SkillButton
id: skillId1
margin-top: 8
height: 15
SkillNameLabel
!text: tr('Luvas')
SkillValueLabel
HorizontalSeparator
height: 7
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: -6
SkillButton
id: skillId0
height: 15
SkillNameLabel
!text: tr('Speed Ataque')
SkillValueLabel
SkillButton
id: skillId2
SkillNameLabel
!text: tr('Espada')
SkillValueLabel
SkillPercentPanel
visible: true
SkillButton
id: skillId4
SkillNameLabel
!text: tr('Distance Ataque')
SkillValueLabel
SkillPercentPanel
visible: true
SkillButton
id: skillId5
SkillNameLabel
!text: tr('Shielding')
SkillValueLabel
SkillPercentPanel
visible: true
esse ai é o original
queria deixar assim:
SkillFirstWidget < UIWidget
SkillButton < UIButton
height: 21
margin-bottom: 2
&onClick: onSkillButtonClick
SkillNameLabel < GameLabel
font: verdana-11px-monochrome
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
SkillValueLabel < GameLabel
id: value
font: verdana-11px-monochrome
text-align: topright
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: prev.left
SkillPercentPanel < ProgressBar
id: percent
background-color: green
height: 5
image-source: /modules/game_skills/img/skillprogress
image-border-left: 2
image-border-right: 3
margin-top: 15
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
phantom: false
MiniWindow
id: skillWindow
!text: tr('Skills')
height: 150
icon: /modules/game_skills/img/perfil_icon
@onClose: modules.game_skills.onMiniWindowClose()
&save: true
MiniWindowContents
padding-left: 5
padding-right: 5
layout: verticalBox
SkillButton
margin-top: 5
id: experience
height: 13
SkillValueLabel
width: 130
text-align: top
anchors.horizontalCenter: parent.horizontalCenter
margin-left: 15
UIButton
id: clanicon
width: 37
height: 36
image-source: /modules/game_skills/img/skillicon
anchors.top: parent.top
anchors.left: parent.left
SkillButton
margin-top: 5
id: experiencee
height: 13
SkillValueLabel
width: 130
font: sans-bold-16px
text-align: top
anchors.horizontalCenter: parent.horizontalCenter
margin-top: -6
margin-left: 15
SkillButton
id: level
SkillNameLabel
!text: tr('Experience')
SkillValueLabel
SkillPercentPanel
background-color: red
SkillButton
id: skillId6
SkillNameLabel
!text: tr('Skill Experience')
SkillValueLabel
SkillPercentPanel
SkillButton
id: health
height: 15
SkillNameLabel
!text: tr('Hit Points')
SkillValueLabel
visible: false
SkillButton
id: mana
height: 15
SkillNameLabel
!text: tr('Mana')
SkillValueLabel
visible: false
SkillButton
id: capacity
height: 15
SkillNameLabel
!text: tr('Capacity')
SkillValueLabel
visible: false
SkillButton
id: regenerationTime
SkillNameLabel
!text: tr('Regeneration Time')
SkillValueLabel
visible: false
SkillButton
id: offlineTraining
SkillNameLabel
!text: tr('Offline Training')
SkillValueLabel
SkillPercentPanel
visible: false
SkillButton
id: magiclevel
SkillNameLabel
!text: tr('Magic Level')
SkillValueLabel
SkillPercentPanel
background-color: red
visible: false
SkillButton
id: stamina
height: 15
SkillNameLabel
!text: tr('Stamina')
SkillValueLabel
margin-top: 8
HorizontalSeparator
height: 7
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: -6
SkillButton
id: soul
height: 15
SkillNameLabel
!text: tr('Soul Points')
SkillValueLabel
SkillButton
id: speed
height: 15
SkillNameLabel
!text: tr('Velocidade')
SkillValueLabel
SkillButton
id: skillId1
margin-top: 8
height: 15
SkillNameLabel
!text: tr('Glove Attack')
SkillValueLabel
HorizontalSeparator
height: 7
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: -6
SkillButton
id: skillId0
height: 15
SkillNameLabel
!text: tr('Speed Ataque')
SkillValueLabel
SkillButton
id: skillId2
SkillNameLabel
!text: tr('Sword Attack')
SkillValueLabel
visible: true
SkillButton
id: skillId4
SkillNameLabel
!text: tr('Distance Attack)
SkillValueLabel
visible: true
SkillButton
id: skillId5
SkillNameLabel
!text: tr('Shielding')
SkillValueLabel
visible: true
eu tento, mas fica bugando o otclient, me ajuda porfavor.


info
Grupo: Campones
Registrado: 04/05/13
Posts: 19
Reputação: +1
Char no Tibia: RedKirito
Nem Acreditei Quando Vi O Tutorial , Está Perfeito , Valew Cara . To Sem Rep Agr husuhsauhsa .