Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 27th, 2016, 04:02 PM
First no big hurry on this question. I have it "mostly" working enough for now but would like to know how to fix in the future.

I have created a new tab using Panel, Templates and Portals for my Pathfinder house rules game. I got it all to work and look very nice on the desktop software. I most likely using outdated ways of scripting but its what I found available to copy from.

The big problem is how it displays on the iPad. It "works" but it looks bad.

Here is what it looks like on my desktop:
Shadow d20 Tab.jpg

Here is how it looks on the iPad:
Shadow d20 Tab iPad.jpg

My question is two fold:
1) Is the issues on the iPad because I used outdated UI scripting? If so where do I find "current" methods with examples?

2) I think I read before that the UI stuff for the iPad has to be done in a unique way? If so any examples of this in use?

I have attached the .dat file to this post if you want to see the XML/scripts.
Attached Files
File Type: txt Shadowd20_Tab - House Rules.txt (10.4 KB, 3 views)

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

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 offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 28th, 2016, 11:14 AM
Quote:
Originally Posted by Mathias View Post
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.
Yeah I mimicked some stuff I saw in the d20 files. Its very confusing when trying to learn cause "some" stuff in d20 is modern and lots of it uses deprecated logic.

Because I am still struggling with the UI stuff it makes it very hard to figure out which is a "good" script to take vs a "bad" script.

Quote:
Originally Posted by Mathias View Post
I recommend looking through the skeleton files or savage worlds, to see the more modern portal arrangement styles.
Thanks. Probably would have been a better place to start from....

Quote:
Originally Posted by Mathias View Post
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:
Thanks. Will take a look at your sample script as soon as I can.

A new question is what is an easy way to "test" these changes? I mean on the desktop I did like 500 CTRL-R with trial and error while learning. Is there an easy way to display in tablet mode? I tried the "develop" menu where it says you can change the "interface" to tablet but I get an error saying "tablet mode not supported for this game system". Do I really need to create a .hl file and send to the iPad to test changes?

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:18 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.