View Single Post
  #3  
Unread 07-12-2009, 06:31 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Possible, but tricky.

To make this happen you'll have to create some hidden buttons to capture and pass values to your statbar. Also add code to....
Persona/MainPage/TabPages/Skills/SkillTemplate/Name
to activate those buttons when a tradeskill label is shown

Seudocode
Code:
<button Name="SkillBtn1" OnActivate="Parent.Parent.Parent.Parent.Parent.Parent.SKILLBAR.FishText.Text = SkillVal
Activated = false
" Visible="false"/>

<button Name="SkillBtn2" OnActivate="Parent.Parent.Parent.Parent.Parent.Parent.SKILLBAR.ForestText.Text = SkillVal
Activated = false
" Visible="false"/>

<Text Name="Name" OnShow="
CND1 = Text == 'Fishing'
Parent.SkillBtn1.SkillVal = Parent.Status.Text
Parent.SkillBtn1.Activated = CND1 ? true : false

CND2 = Text == 'Foresting'
Parent.SkillBtn2.SkillVal = Parent.Status.Text
Parent.SkillBtn2.Activated = CND2 ? true : false
" WhateverCodeIsAlreadyOnThisTextObject />
Make additional buttons and conditional code to handle each skill.

You may find that the "Name" text object never triggers the OnShow script. If so, try attaching the script to the parent "SkillTemplate" Page object. In this case you'll need to adjust the pathing within your scripts.
Reply With Quote