• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Redraw class' Tab layout?

TCArknight

Well-known member
Is there a way to force a redraw of the Class Tab for a class? I have a Class Ability that, if the checkbox is checked, adds +1 spellcaster ability per level, otherwise it add casting ability for the class. If I use it in the current manner, the Special Abilities button on the side of the Tab gets either behind or in front of the Spells/Day, Spell DC, etc on the left hand side.

Classscreen.jpg


This is the code:
Code:
if (field[usrIsCheck].value <> 0) then
  ~notify "Manifesting as Psychic Warrior"
  root.field[cMagLevTot].arrayvalue[0] = 1
  root.field[cMagLevTot].arrayvalue[1] = 2
  root.field[cMagLevTot].arrayvalue[2] = 3
  root.field[cMagLevTot].arrayvalue[3] = 4
  root.field[cMagLevTot].arrayvalue[4] = 5
  root.field[cMagLevTot].arrayvalue[5] = 6
  root.field[cMagLevTot].arrayvalue[6] = 7
  root.field[cMagLevTot].arrayvalue[7] = 8
  root.field[cMagLevTot].arrayvalue[8] = 9
  root.field[cMagLevTot].arrayvalue[9] = 10

else
  perform hero.assign[Hero.Psionic]
  perform hero.assign[Custom.HasPsiCls]
  perform hero.assign[Custom.IsManifest]
  perform hero.assign[Custom.WMndBonPP]
  perform root.assign[CasterType.SpontKnow]
  perform root.assign[sClass.cHelpPWa]
  root.field[cSpellName].text = "Powers"
  root.field[cSplMinLvl].value = 1 
  root.field[cSplMaxLvl].value = 5
  
  ... all cast/known stuff here
  endif

Thoughts? Help? :)
TC
 

Attachments

  • Class screen.jpg
    Class screen.jpg
    78.2 KB · Views: 1
There is not a way to redraw the class tab, that functionality is in the core files. However, what is probably happening is that you need to apply a tag somewhere so that the classes tab knows the class grants extra magic levels and arranges things appropriately. I'll look into it to see which and where.
 
Try assigning the Helper.HasExtraMg tag to the class helper, I think that'll cause the magic table to arrange itself correctly.
 
That didn't work, but once I negated all the spellcasting by -= what I had added, then it worked fine and populated the class tab with the specials, instead of having them in the button. It also did have the +1 level in the normal place, so I think it's good now, thanks. :)
 
Back
Top