View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 27th, 2016, 08:19 PM
I haven't seen prechild or postchild in forever - how far back did you go to find those? Those were phased out before I joined the company, back in '07.

I recommend looking through the skeleton files or savage worlds, to see the more modern portal arrangement styles.

Visual scripts usually do need specific handling for tablets - there are differences in some of the details of how things are sized and how they're arranged. Here's an example, from the attribute position script from the basics tab:

Code:
    <position><![CDATA[
      ~ Set up our height
      var incrgapl as number
      var incrgapr as number
      if (state.istablet = 0) then
        height = portal[aUser].height + 6
        incrgapl = 6
        incrgapr = 6
      else
        height = 55
        incrgapl = 35
        incrgapr = 5
        endif

      ~if we need to show our special details label, add some extra height for
      ~it
      if (state.istablet = 0) then
        portal[details].visible = 0
      elseif (herofield[tAttPoints].value + hero.tagis[Dependant.SocChar] = 0) then
        portal[details].visible = 0
        endif
      if (portal[details].visible <> 0) then
        height += 10
        endif

      doneif (issizing <> 0)

      ~we have more space to use on the tablet
      if (state.istablet = 0) then
        portal[aTitle].width = 65
      else
        portal[aTitle].width = 90
        endif
Mathias is online now   #2 Reply With Quote