• 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

Missing something, pointer please.

senjak

Well-known member
Hi!

I'm playing around with the authoring kit (Feng Shui for the curious) and I've run into something that is causing me to hit the wall.

How do I increase the width of the Attributes column on the Basics tab?

I tried adjusting:

portal[baAttrib].width = width / 2 - 5

to

portal[baAttrib].width = width / 2 + 15

That made the space taken up by the text larger, but didn't expand the field under Attributes.

Can anyone suggest how to fix that correctly? I only need to increase the attribute text field by about 20 units.

Thanks!

Senjak
 
The default layout for the basics tab is two columns.

So, by calculating the width of the attributes as 1/2 the overall width (minus a margin), it's setting that to be one of those columns.

When you expanded the space available to the attributes on the left, did you remove an equal amount from everything in the column on the right? If not, is the stuff on the right covering up the stuff on the left, making it look as if there was no change on the left?
 
Code:
portal[baAttrib].width = width / 2 - 5

is how the column width is set.

Later on, everything else sets

Code:
portal[XXX].width = portal[baAttrib].width

So it established the width in the first instance, and then re-uses that value everywhere else.
 
I must find time to go diving into the code again. I need to figure out where 'width' is set and make it larger.

Sigh, so many things to do, so little time.

Thank you very much for the help. Is there a description of various built in variables that can be called? Feel free to say, it is in the wiki, and I should read it more carefully!



Senjak
 
= width

means the width of the tab itself. That isn't something you should change. Re-arrange everything within the tab to fit the space, but you want to keep the tab size the same, so that people running Hero Lab on some of the smallest netbooks out there won't get some of the tab itself cut off.

You'll need to learn the visual portions by studying the examples, I'm sorry to say - the visual elements haven't been added to the wiki yet.
 
Giggle.

I always seem to find the crack that is missing, and then jump into it.

Finding time to dive into the code always is the hard point, and I really am interested in games that aren't currently supported, like "Feng Shui" and "BESM". Hopefully my house won't develop a new leak when I do find time!

Yeah, that's what happened when I last had 6 hours to dive into the code. 2 hours in and, "drip... ...drip... ...drip..." sigh.
 
Back
Top