Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. 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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
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 |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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:
Quote:
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. |
|||
#3 |
|
|