[00:27:38] --- barra_away is now known as barra_home
[00:32:43] <-- Bo_Thomsen has left IRC (Quit: Leaving.)
[01:20:04] <-- jschall_ has left IRC (Ping timeout: 240 seconds)
[02:53:52] <-- edheldil_ has left IRC (Ping timeout: 240 seconds)
[03:01:14] <pupnik_> hey fuzzie
[03:15:41] <-- raevol has left IRC (Quit: Leaving.)
[03:20:59] <-- barra_home has left IRC (Quit: Verlassend)
[03:51:16] --> jschall has joined #GemRb
[04:39:26] <-- pupnik_ has left IRC (Quit: leaving)
[04:57:51] <-- jschall has left IRC (Remote host closed the connection)
[06:11:18] <-- tomprince has left IRC (Ping timeout: 265 seconds)
[07:14:11] --> tomprince has joined #GemRb
[07:47:38] --> edheldil_ has joined #GemRb
[08:09:50] <-- Maighstir has left IRC (Ping timeout: 250 seconds)
[08:18:17] --> Bo_Thomsen has joined #GemRb
[09:43:04] --> barra_home has joined #GemRb
[09:48:29] --> Avenger has joined #GemRb
[09:48:34] <Avenger> hello
[09:48:36] --- ChanServ gives channel operator status to Avenger
[09:58:23] <xrogaan> 1337 * (pi / 100) = 42
[10:09:17] --> Maighstir has joined #GemRb
[13:02:17] <Avenger> heh, iwd2 still has the double worldmap stuff from HoW. There is code to switch to the other worldmap when the area number is >=9000
[13:03:57] <fuzzie> cute
[13:06:31] <Avenger> i don't really like this. They have arbitrary number of worldmaps in wm1 already, this just makes things complicated
[13:07:04] <Avenger> luckily no one will make an iwd2 mod :)
[13:07:12] <Lightkey> this warrants a IT'S OVER 9000!!!1
[13:24:01] <Avenger> btw, iwd2 doesn't have that convoluted logic for combatcounter. It has a single field for it
[14:03:56] <Avenger> iwd2 area headers are 16 bytes longer than other areas, and there are 2 bytes actually used in this extra area. there is an action: OverrideAreaDifficulty that is also associated with these bytes.
[14:04:28] <Avenger> overrideareadifficulty maintains a list of area names+the supplied parameter
[14:04:50] <Avenger> so i guess, those 2 bytes are the area difficulty values
[14:05:04] <Avenger> i still don't know how are they used
[14:39:32] --> SiENcE has joined #GemRb
[14:47:48] --> SiENcE_ has joined #GemRb
[14:48:02] <-- SiENcE has left IRC (Ping timeout: 240 seconds)
[14:53:16] <Avenger> hmm, it seems iwd2 defaults the area script to the area name if the first character is 0, i wonder if we handle this...
[14:53:57] <Avenger> meh, we don't
[14:54:59] --> lynxlynxlynx has joined #GemRb
[14:54:59] <-- lynxlynxlynx has left IRC (Changing host)
[14:54:59] --> lynxlynxlynx has joined #GemRb
[14:54:59] --- ChanServ gives channel operator status to lynxlynxlynx
[14:58:18] <Avenger> this may cause problem with ar6000, at least.
[14:59:21] <Avenger> found more
[15:26:30] <Avenger> it looks like this is another gameflag :(
[15:30:13] <-- Avenger has left IRC (Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014])
[15:57:41] <CIA-85> GemRB: 03avenger_teambg * rfcb75fea2a7e 10gemrb/gemrb/ (6 files in 6 dirs): added ForceAreaScript gameflag
[15:57:54] <CIA-85> GemRB: 03avenger_teambg * r02f1d395983e 10gemrb/gemrb/GUIScripts/CommonWindow.py: fixed container handling in iwd2
[16:29:47] <Maighstir> Is there a way of getting the currently selected row number from a TextArea? Also, is there a way of having a default row selected (select a row through GUIscript rather than a manual click)? Or do I have to build the list through a bunch of radio buttons to be able to do both those?
[16:31:14] <Maighstir> Loking through the docs I couldn't find what I was looking for.
[16:32:44] <fuzzie> there doesn't seem to be anything which will set seltext at a glance
[16:34:01] <fuzzie> or even get it, indeed
[16:34:55] <fuzzie> But you can do the equivalent by just setting the variable it's hooked up to?
[16:36:50] <Maighstir> Get the selected text is easy (QueryText), but not the row number as far as I know... as since each row is taken from a separate strref (think race name), I don't know an easy way to look it up in another table.
[16:37:30] <fuzzie> I mean, you can hook it up to a variable, the same as most of the other controls.
[16:38:24] <fuzzie> And then the variable represents the row number - it should take the variable's value at the point where you hook it up, and change the variable when the user selects a different row.
[16:39:16] <fuzzie> (so, GemRB.SetVar and TextArea.SetVarAssoc on create, then GemRB.GetVar)
[16:40:25] <Maighstir> Wouldn't that just give the variable the same number every time? Or is there a magic number that gets interpreted a "currently selected row number"?
[16:41:00] <fuzzie> The variable associated with a TextArea contains only the row number.
[16:43:00] <Maighstir> Hmm, I didn't get that much from the docs, thanks. Only understood the button functionality: Button.SetVarAssoc("varname", number) where number won't change.
[16:43:19] <fuzzie> Ah.
[16:43:54] <fuzzie> Right, it's documented as being impossible. :P
[16:44:49] <fuzzie> I guess you presumably don't need the SetVar, since SetVarAssoc is going to set your initial value.
[16:45:00] <fuzzie> And I haven't *tried* this, so it'd be nice to know if it actually does work.
[16:50:08] <Maighstir> TextArea.SetVarAssoc("VarName", 0) sets VarName to 0, no matter which row is clicked.
[16:53:50] <Maighstir> No wait... let me check that again
[16:55:16] <Maighstir> No, you're right, it works
[20:38:44] <-- lynxlynxlynx has left IRC (Remote host closed the connection)
[21:10:20] <-- CIA-85 has left #GemRb
[21:14:02] <-- Bo_Thomsen has left IRC (Quit: Leaving.)
[21:44:02] <-- SiENcE_ has left IRC (Ping timeout: 240 seconds)
[22:18:06] --> CIA-31 has joined #GemRb
[23:15:20] --> pupnik has joined #GemRb
[23:44:20] --> Textmode has joined #GemRb
[23:44:36] * Textmode huggles #GemRb
[23:54:47] --> barra_away has joined #GemRb
[23:57:51] <-- barra_home has left IRC (Ping timeout: 240 seconds)