--- Log opened Fri Nov 04 00:00:06 2016 20161104 00:01:24-!- hay207 [~hay207@41.34.49.219] has joined #wesnoth 20161104 00:01:43-!- hay207__ [~hay207@41.34.7.41] has quit [Ping timeout: 265 seconds] 20161104 00:35:22< lamefun> If I use a callback AND a return value for a button, will the callback still run before the dialog is closed? 20161104 00:38:03-!- hay207_ [~hay207@41.34.19.7] has joined #wesnoth 20161104 00:40:44-!- hay207 [~hay207@41.34.49.219] has quit [Ping timeout: 260 seconds] 20161104 00:42:55< DeFender1031> lamefun, not sure. try it and see? 20161104 00:43:12< DeFender1031> I would imagine it should, but that's just a guess. 20161104 00:51:10-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has quit [Quit: Connection closed for inactivity] 20161104 00:51:15-!- edaq [~edaq3@h184-60-58-252.cytnin.broadband.dynamic.tds.net] has quit [Remote host closed the connection] 20161104 00:52:17< celticminstrel> I think so? 20161104 01:06:20-!- salluc69 [~salluc69@host174-196-dynamic.24-79-r.retail.telecomitalia.it] has quit [Ping timeout: 256 seconds] 20161104 01:07:26< lamefun> should I search units by x,y or by unit.id? 20161104 01:07:48< celticminstrel> I dunno... 20161104 01:08:27< celticminstrel> Both ways should be guaranteed unique, unless you go out of your way to make multiple units with the same ID (which you shouldn't do since it causes problems). 20161104 01:08:48< celticminstrel> x,y obviously can never match on the recall list; ID might. 20161104 01:09:13< DeFender1031> celticminstrel, pretty sure you need to use a separate function entirely to search the recall list 20161104 01:09:31< celticminstrel> Not sure. Maybe. 20161104 01:09:47< DeFender1031> https://wiki.wesnoth.org/LuaWML/Units#wesnoth.get_units vs. https://wiki.wesnoth.org/LuaWML/Units#wesnoth.get_recall_units 20161104 01:10:15< DeFender1031> unless the latter is simply a special-case of the former predefining "only recall units" for no real reason 20161104 01:12:28-!- salluc69 [~salluc69@host91-215-dynamic.8-87-r.retail.telecomitalia.it] has joined #wesnoth 20161104 01:12:33< celticminstrel> Yeah, that's what I'm unsure of. 20161104 01:19:03< lamefun> it says "on the map" 20161104 01:20:09< DeFender1031> lamefun, true, but the wiki often says that, even when it doesn't mean it. 20161104 01:20:52< DeFender1031> for example: see this edit i made the other day: https://wiki.wesnoth.org/index.php?title=DirectActionsWML&type=revision&diff=57995&oldid=57915 20161104 01:21:15< DeFender1031> [unit] can create to recall or a variable too, but it said "on the map" until I went and fixed it. 20161104 01:21:53-!- Appleman1234 [~Appleman1@KD106161210098.au-net.ne.jp] has quit [Read error: Connection reset by peer] 20161104 01:22:58-!- Appleman1234 [~Appleman1@KD106161210098.au-net.ne.jp] has joined #wesnoth 20161104 01:23:32-!- shiki|sevu [~Shiki@141.39.226.226] has quit [Read error: No route to host] 20161104 01:37:41-!- Shiki [~Shiki@141.39.226.226] has joined #wesnoth 20161104 01:40:54< lamefun> gues w4ht k3wlstuff theer is!!!!1 20161104 01:41:58< lamefun> http://paste.ofcode.org/HnEWPU8wXEsta3sJXyWsuw 20161104 01:42:25< lamefun> im closing and recreating the dialog, the gold and the sidebar are still not updated :/ 20161104 01:43:01< celticminstrel> What's with "return data.action" when "data" has no action key. 20161104 01:43:20< celticminstrel> You could maybe try wesnoth.wml_actions.redraw{} between showings of the dialog, no idea if that'd help though. 20161104 01:44:38< lamefun> 'if action then' 20161104 01:46:54< lamefun> the action is set if an item is bought 20161104 01:47:37< lamefun> I'm ignoring the return code system because it's limited and incomprehensible. 20161104 01:48:12< DeFender1031> limited sure, but "incomprehensible"? 20161104 01:48:36< lamefun> yes 20161104 01:48:44< lamefun> maybe alien telepaths from Mars could figure it out 20161104 01:49:24< DeFender1031> you keep saying that about a great many things 20161104 01:49:47< DeFender1031> i'm beginning to think that YOU are the alien telepath from mars. 20161104 01:49:57< DeFender1031> and that you doth protest too much 20161104 01:50:02< lamefun> eg. I found out that if you give a button the id 'ok', it will mysteriously return 20161104 01:50:24< lamefun> so there's some magic going on, I prefer to stay away from magic 20161104 01:51:11< DeFender1031> that's... not magic. 20161104 01:51:42< DeFender1031> that's the way the system works. if a return value is set on a button, it closes the dialog and returns that value to the caller. if not, then it doesn't. 20161104 01:52:45< DeFender1031> oh, you said "id", not "return value" 20161104 01:53:04< celticminstrel> There are some magic button IDs, yes... 20161104 01:53:34< DeFender1031> yeah, okay, you're right this time. 20161104 01:54:10< lamefun> I put W.redraw {} before calling the shop show again... 20161104 01:54:19< lamefun> Same problem, only updates the battlefield. 20161104 01:55:32< DeFender1031> how odd... 20161104 01:56:28< DeFender1031> maybe try W.gold{amount=0,side=whateverSideToRefreshFor} ? 20161104 01:57:03< DeFender1031> actually, i think if you leave out side entirely, it'll apply to all sides 20161104 01:57:08< DeFender1031> but whatever 20161104 01:57:11< DeFender1031> try it. 20161104 01:58:31< lamefun> well, it's all the same... 20161104 02:04:05< lamefun> also k3wl: wesnoth.deselect_hex (Version 1.13.2 and later only) 20161104 02:05:10< lamefun> so here's my hack plan: re-create the sidebar in the shop, then when unit enter the shop, create a fake dummy unit and select it so that old sidebar is hidden, maybe this will work... 20161104 02:16:30-!- edaq [~edaq3@h184-60-58-252.cytnin.broadband.dynamic.tds.net] has joined #wesnoth 20161104 02:52:51< lamefun> the 'fake dummy unit' part of my hack plan didn't work, of course 20161104 02:53:05< lamefun> select_hex is only reflected in the sidebar AFTER the event... 20161104 02:54:41-!- hay207__ [~hay207@41.34.38.203] has joined #wesnoth 20161104 02:56:56-!- hay207_ [~hay207@41.34.19.7] has quit [Ping timeout: 252 seconds] 20161104 02:57:17< lamefun> hacked my way around that too 20161104 02:57:25< lamefun> selecting unit on enter_hex... 20161104 03:05:34< lamefun> http://paste.ofcode.org/9U4yfXJ3bUmxCSZ3RgJmPs 20161104 03:05:40< lamefun> hack after a hack after a hack... 20161104 03:05:59< celticminstrel> Nice... 20161104 03:06:13< celticminstrel> I think there's some way other than extract_unit though. 20161104 03:06:20< celticminstrel> Probably put_unit(x,y)? 20161104 03:06:50< celticminstrel> So instead of lines 5 and 6 you should be able to just do wesnoth.put_unit(x,y) 20161104 03:28:08< lamefun> how do I set leader from command line? 20161104 03:28:38< celticminstrel> From command-line? 20161104 03:29:03< celticminstrel> Not sure. If you have it (ie, are on Linux) you could check the man-page. 20161104 03:29:20< celticminstrel> Though for 1.12 it's probably a bit outdated. 20161104 03:33:18< lamefun> --parm '2:type:Troll Rocklobber' 20161104 03:35:25< lamefun> A simple condition failed me... (unit_cfg.advances_to ~= nil and unit_cfg.advances_to ~= '') or (type_cfg.advances_to ~= nil and type_cfg.advances_to ~= '') 20161104 03:36:05< lamefun> type_cfg.advances_to is 'null' for Troll Rocklobber... 20161104 03:38:46< lamefun> needed to read the docs... 20161104 03:45:35-!- edaq [~edaq3@h184-60-58-252.cytnin.broadband.dynamic.tds.net] has quit [Quit: Leaving] 20161104 03:48:45-!- ArneBab_ [~quassel@55d44e91.access.ecotel.net] has joined #wesnoth 20161104 03:53:14-!- ArneBab [~quassel@freenet/developer/arnebab] has quit [Ping timeout: 265 seconds] 20161104 03:57:54-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has joined #wesnoth 20161104 03:59:16-!- hay207__ [~hay207@41.34.38.203] has quit [Ping timeout: 252 seconds] 20161104 03:59:52-!- hay207__ [~hay207@41.34.39.242] has joined #wesnoth 20161104 04:08:00-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 260 seconds] 20161104 04:11:50< lamefun> Is there a way to set preferred height on a window? I.e. it'll be at least this high when the space allows, but will shrink if there's not enough. 20161104 04:12:30-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20161104 04:15:33-!- hay207__ [~hay207@41.34.39.242] has quit [Read error: Connection reset by peer] 20161104 04:18:59-!- hay207__ [~hay207@41.34.39.242] has joined #wesnoth 20161104 04:23:39-!- hay207 [~hay207@41.34.39.242] has joined #wesnoth 20161104 04:23:52-!- hay207__ [~hay207@41.34.39.242] has quit [Ping timeout: 260 seconds] 20161104 04:26:46-!- hay207 [~hay207@41.34.39.242] has quit [Read error: Connection reset by peer] 20161104 04:30:08-!- hay207 [~hay207@41.34.39.242] has joined #wesnoth 20161104 04:34:39-!- hay207_ [~hay207@41.34.39.242] has joined #wesnoth 20161104 04:35:04-!- hay207 [~hay207@41.34.39.242] has quit [Ping timeout: 260 seconds] 20161104 04:44:57-!- Shiki [~Shiki@141.39.226.226] has quit [Quit: Verlassend] 20161104 04:58:16-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161104 05:12:08-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 245 seconds] 20161104 05:28:15-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20161104 05:38:13< lamefun> Well, well, look what I've got here... 20161104 05:38:15< lamefun> celticminstrel, http://uploadpie.com/dJOKr 20161104 05:39:14< lamefun> This is what happens when I call [object] from within my dialog. Help? 20161104 05:41:49< lamefun> New discovery btw: USING [object] UPDATES THE SIDEBAR! 20161104 05:45:42< lamefun> No :( 20161104 05:46:05< lamefun> The bug was because I forgot 'silent=yes' in the object, the rectangle in the center is the object message :( 20161104 05:48:13< lamefun> False hope... 20161104 05:51:13-!- astrel [~astrelyon@78.134.226.117] has joined #wesnoth 20161104 05:53:04-!- astrelyon [~astrelyon@78.134.231.82] has quit [Ping timeout: 256 seconds] 20161104 06:21:55-!- Bonobo [~Bonobo@2001:44b8:254:3200:f9ef:17fe:44f:c237] has joined #wesnoth 20161104 06:27:23-!- ArneBab_ [~quassel@55d44e91.access.ecotel.net] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.] 20161104 06:51:25-!- ArneBab [~quassel@55d44e91.access.ecotel.net] has joined #wesnoth 20161104 06:51:26-!- ArneBab [~quassel@55d44e91.access.ecotel.net] has quit [Changing host] 20161104 06:51:26-!- ArneBab [~quassel@freenet/developer/arnebab] has joined #wesnoth 20161104 07:24:38-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20161104 07:42:44-!- astrel [~astrelyon@78.134.226.117] has quit [Quit: WeeChat 1.4] 20161104 07:43:06-!- astrelyon [~astrelyon@78.134.226.117] has joined #wesnoth 20161104 07:44:58-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20161104 08:03:51-!- lamefun [~lamefun@176.214.213.69] has quit [Remote host closed the connection] 20161104 08:09:05-!- mystic_x [~X@unaffiliated/mysticx] has quit [Ping timeout: 244 seconds] 20161104 08:24:29-!- mystic_x [~X@unaffiliated/mysticx] has joined #wesnoth 20161104 08:40:33-!- mystic_x [~X@unaffiliated/mysticx] has quit [Quit: Leaving.] 20161104 08:42:12-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161104 09:10:03-!- Murgatroyd [~Vadatajs@63-152-110-53.cdrr.qwest.net] has joined #wesnoth 20161104 09:12:38-!- Vadatajs [~Vadatajs@75-167-213-134.cdrr.qwest.net] has quit [Ping timeout: 244 seconds] 20161104 09:21:05-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161104 10:44:02-!- Polarina [~Polarina@wesnoth/translator/Polarina] has quit [Ping timeout: 260 seconds] 20161104 10:56:55-!- Polarina [~Polarina@wesnoth/translator/Polarina] has joined #wesnoth 20161104 10:58:44-!- Nikitaw99 [2e00bc04@gateway/web/freenode/ip.46.0.188.4] has joined #wesnoth 20161104 11:39:11-!- hay207__ [~hay207@41.34.34.133] has joined #wesnoth 20161104 11:41:32-!- hay207_ [~hay207@41.34.39.242] has quit [Ping timeout: 260 seconds] 20161104 12:10:16-!- irco [~irco@HSI-KBW-134-3-111-4.hsi14.kabel-badenwuerttemberg.de] has joined #wesnoth 20161104 12:17:18-!- louis94 [~~louis94@91.178.241.199] has joined #wesnoth 20161104 12:20:30-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161104 12:24:09-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20161104 13:33:32-!- DeFender1031 [~DeFender1@46-116-17-86.bb.netvision.net.il] has quit [Quit: I'm not back now.] 20161104 13:38:33-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20161104 13:38:39-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth 20161104 14:12:32-!- louis94 [~~louis94@91.178.241.199] has quit [Quit: Konversation terminated!] 20161104 14:20:42-!- Bonobo [~Bonobo@2001:44b8:254:3200:f9ef:17fe:44f:c237] has quit [Quit: Leaving] 20161104 14:25:34-!- soloojos [~soloojos@gateway/tor-sasl/soloojos] has quit [Ping timeout: 245 seconds] 20161104 14:27:11-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161104 14:32:47-!- irco [~irco@HSI-KBW-134-3-111-4.hsi14.kabel-badenwuerttemberg.de] has quit [Ping timeout: 250 seconds] 20161104 14:45:33-!- soloojos [~soloojos@gateway/tor-sasl/soloojos] has joined #wesnoth 20161104 15:21:38-!- Appleman1234 [~Appleman1@KD106161210098.au-net.ne.jp] has quit [Ping timeout: 252 seconds] 20161104 15:32:33-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20161104 15:36:15-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has joined #wesnoth 20161104 16:24:31-!- Nikitaw99 [2e00bc04@gateway/web/freenode/ip.46.0.188.4] has quit [Quit: Page closed] 20161104 16:50:07-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has joined #wesnoth 20161104 16:56:22-!- Shiki [~Shiki@141.39.226.226] has joined #wesnoth 20161104 17:08:30-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20161104 17:17:06-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has joined #wesnoth 20161104 17:23:39-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20161104 17:25:15-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has joined #wesnoth 20161104 17:25:15-!- ancestral [~ancestral@75-168-80-79.mpls.qwest.net] has quit [Client Quit] 20161104 17:25:20-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20161104 18:02:08-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20161104 18:07:44< tokage> how to reset wesnoth to the default view? 20161104 18:08:00< tokage> so that it's highlighted how far my units can go 20161104 18:08:05< tokage> it suddenly changed :< 20161104 18:08:16< celticminstrel> I don't know, maybe try right-click? 20161104 18:08:21< celticminstrel> Or p? 20161104 18:08:32< celticminstrel> Sometimes I accidentally activate planning mode by hitting p 20161104 18:08:54< tokage> it's not in planning mode 20161104 18:09:01< celticminstrel> Okay, then what's it in? 20161104 18:09:23-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161104 18:10:11< tokage> I don't know. normally the hexagons are enlighted when trying to move the unit 20161104 18:10:15< tokage> the hexagons that I can move to 20161104 18:10:22< tokage> now all which are in sight 20161104 18:12:36< tokage> eg https://p.tokage.me/ksazIO.png 20161104 18:12:54< tokage> it's kinda irritating 20161104 18:17:01< celticminstrel> So right-clicking an empty tile doesn't help? 20161104 18:17:27 * celticminstrel doesn't see anything wrong in the screenshot, but could be missing something. 20161104 18:18:27< tokage> I don't even see the field of control 20161104 18:18:28< tokage> :< 20161104 18:18:28< tokage> sometimes it suddenly changes in the game 20161104 18:23:50< zookeeper> umm 20161104 18:25:09< zookeeper> well that screenshot is so small it's kinda hard to say anything 20161104 18:26:51< zookeeper> anyway i'm not sure what's happening there 20161104 18:27:06< zookeeper> or what would cause it 20161104 18:28:36< tokage> https://p.tokage.me/3FEzTN.png 20161104 18:28:36< tokage> see 20161104 18:30:10< tokage> it doesn't even show me the field of control when hovering over enemy units 20161104 18:31:16< zookeeper> is that in networked or local multiplayer? 20161104 18:42:12< tokage> yeah 20161104 18:42:34< tokage> it should look like this actually: https://p.tokage.me/qzVnMl.png 20161104 18:42:44< tokage> I was in the middle of a game and it suddenly happened :-( 20161104 18:42:50< tokage> I won regardless :D 20161104 18:42:57< zookeeper> so networked 20161104 18:43:03< tokage> yes, official game 20161104 18:43:08< zookeeper> mmkay 20161104 18:43:40< zookeeper> i don't know really, i don't recall seeing that problem before (although i might have) 20161104 18:44:11< tokage> I've had this problem quite a few times, sometimes even forcing a restart for me because it's unplayable 20161104 18:44:22< tokage> restart as in save and continue ofc^^ 20161104 18:44:35< zookeeper> it does seem to hightlight exactly 2x your actual movement range 20161104 18:45:15< celticminstrel> What happens if you press 2? 20161104 18:45:19< zookeeper> aha! 20161104 18:45:27< zookeeper> yeah there was a feature like that 20161104 18:45:57< celticminstrel> No idea if pressing again is how you deactivate it though. 20161104 18:46:02< tokage> I'm not in the game anymore 20161104 18:46:05< celticminstrel> Could also try 0 I suppose. 20161104 18:46:08< zookeeper> and yes that's it, although i need to hold down the key to see it 20161104 18:46:16< tokage> I'll try that next time :< 20161104 18:46:26< celticminstrel> Hm, well I suppose there's a chance that it didn't catch the key-up event... :| 20161104 18:46:42< zookeeper> for me, holding down a number key expands to show the movement range for the corresponding number of turns 20161104 18:46:58< zookeeper> which could mean that your "2" key is stuck? :P 20161104 18:48:08< zookeeper> although maybe more likely that it's possible to do something else while it's pressed and get the highlight range stuck 20161104 18:48:32< zookeeper> indeed, holding 2 and switching to another app seems to cause it to get stuck for me 20161104 18:53:02-!- uprego [~uprego@unaffiliated/ushiu] has joined #wesnoth 20161104 19:05:57< zookeeper> tokage, so basically, the next time it happens, just press some number keys and it should disappear 20161104 19:07:21< tokage> thanks, I will do. 20161104 19:07:53< tokage> maybe it has to do with my window manager 20161104 19:07:57< tokage> I'm using i3 20161104 19:08:03< tokage> well 20161104 19:08:05< zookeeper> could be 20161104 19:08:08< tokage> probably :D 20161104 19:08:33< tokage> considering 2: is my irc space 20161104 19:10:39< zookeeper> seems to affect 1.12 but not 1.13 anymore, so it's probably been inadvertently fixed at some point 20161104 19:19:21-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161104 20:47:04-!- Blukunfando [~bkf@92.190.42.58] has quit [Ping timeout: 260 seconds] 20161104 20:48:39-!- Shiki [~Shiki@141.39.226.226] has quit [Ping timeout: 250 seconds] 20161104 20:49:59-!- Shiki [~Shiki@141.39.226.226] has joined #wesnoth 20161104 20:55:40-!- uprego [~uprego@unaffiliated/ushiu] has quit [Read error: Connection reset by peer] 20161104 21:08:25-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161104 21:55:19-!- hay207 [~hay207@41.34.36.31] has joined #wesnoth 20161104 21:56:57-!- hay207__ [~hay207@41.34.34.133] has quit [Ping timeout: 260 seconds] 20161104 22:12:53-!- Shiki [~Shiki@141.39.226.226] has quit [Read error: Connection reset by peer] 20161104 22:20:21-!- mystic_x [~X@unaffiliated/mysticx] has joined #wesnoth 20161104 22:27:49-!- TheJJ [~rofl@ipbcc36896.dynamic.kabel-deutschland.de] has quit [Remote host closed the connection] 20161104 22:27:52-!- mic_e [~quassel@ipbcc36896.dynamic.kabel-deutschland.de] has quit [Read error: Connection reset by peer] 20161104 22:32:08-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has quit [Quit: Konversation terminated!] 20161104 22:35:22-!- ancestral [~ancestral@8.42.164.20] has joined #wesnoth 20161104 22:58:35-!- ancestral [~ancestral@8.42.164.20] has quit [Quit: i go nstuf kthxbai] 20161104 23:09:39-!- Appleman1234 [~Appleman1@KD106161209021.au-net.ne.jp] has joined #wesnoth 20161104 23:10:19-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20161104 23:10:24-!- lamefun [~lamefun@176.214.213.69] has joined #wesnoth 20161104 23:11:12< lamefun> How to use multipage? 20161104 23:11:35< lamefun> (one with multiple page definitions) 20161104 23:12:03< celticminstrel> I don't think multipage supports multiple page definitions? 20161104 23:12:29< celticminstrel> And I don't think the Lua GUI2 API supports dynamically adding widgets... 20161104 23:12:49< lamefun> https://wiki.wesnoth.org/GUIWidgetInstanceWML#Multi_page 20161104 23:13:15< celticminstrel> Hmm. That doesn't say much though. 20161104 23:13:27< lamefun> that's the problem... 20161104 23:13:32< celticminstrel> I have no idea how it works with multiple definitions. 20161104 23:13:40< celticminstrel> (Or if it works for that matter) 20161104 23:19:43< lamefun> T.multi_page { id = 'sections', section_page, section_page2 } - well, this works, but I've got no idea how to choose which one to use in set_dialog_value... 20161104 23:20:08-!- hay207_ [~hay207@41.34.16.86] has joined #wesnoth 20161104 23:20:09-!- hay207 [~hay207@41.34.36.31] has quit [Ping timeout: 250 seconds] 20161104 23:22:53-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20161104 23:24:41-!- hay207__ [~hay207@41.34.16.86] has joined #wesnoth 20161104 23:24:50-!- gfgtdf [~chatzilla@x4e369961.dyn.telefonica.de] has joined #wesnoth 20161104 23:24:53-!- hay207_ [~hay207@41.34.16.86] has quit [Ping timeout: 252 seconds] 20161104 23:26:26< gfgtdf> lamefun: i also dont think the multi page suipports different page definitions, 20161104 23:26:53< gfgtdf> lamefun: i think the onyl way to add/selecting pages from lua is like in listboxes 20161104 23:28:20< lamefun> I tried to look in the C++ code... 20161104 23:28:23< lamefun> https://github.com/wesnoth/wesnoth/blob/1.12/src/gui/widgets/multi_page.hpp 20161104 23:28:44< lamefun> "This function expect a page to one multiple widget." - now how am I supposed to comprehend this incomprehensible sentence? 20161104 23:29:47-!- Shiki [~Shiki@141.39.226.226] has joined #wesnoth 20161104 23:29:57< gfgtdf> lamefun: yes it quite unclear 20161104 23:30:33< gfgtdf> lamefun: still it doesn't support multiple page definition afaik. 20161104 23:30:53< gfgtdf> lamefun: assuming that by 'definition' you mean the same as i 20161104 23:51:05< lamefun> well, uhm... 20161104 23:51:11< lamefun> https://github.com/wesnoth/wesnoth/blob/1.12/src/gui/auxiliary/window_builder/multi_page.cpp#L36 - of course... --- Log closed Sat Nov 05 00:00:00 2016