#exult@irc.freenode.net logs for 31 Aug 2016 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[01:40:21] <-- Dominus has left IRC (Ping timeout: 244 seconds)
[01:40:50] --> Dominus has joined #exult
[01:40:50] <-- Dominus has left IRC (Changing host)
[01:40:50] --> Dominus has joined #exult
[01:40:50] --- ChanServ gives channel operator status to Dominus
[02:43:05] --> frob has joined #exult
[02:47:33] <-- frob has left IRC (Ping timeout: 244 seconds)
[04:01:09] <-- RadoS has left IRC (Remote host closed the connection)
[04:04:53] <-- Dominus has left IRC (Read error: Connection reset by peer)
[04:05:04] --> Dominus has joined #exult
[04:05:04] <-- Dominus has left IRC (Changing host)
[04:05:04] --> Dominus has joined #exult
[04:05:04] --- ChanServ gives channel operator status to Dominus
[04:14:32] --> DominusExult has joined #exult
[04:14:32] <-- DominusExult has left IRC (Changing host)
[04:14:32] --> DominusExult has joined #exult
[04:14:32] --- ChanServ gives channel operator status to DominusExult
[04:16:58] <-- Dominus has left IRC (Read error: Connection reset by peer)
[04:16:58] --- DominusExult is now known as Dominus
[04:46:44] <-- KnightCaptain has left IRC (Ping timeout: 260 seconds)
[05:10:19] --> frob has joined #exult
[05:14:50] <-- frob has left IRC (Ping timeout: 252 seconds)
[05:15:28] --> ttarrant has joined #exult
[06:01:47] <-- ttarrant has left IRC (Ping timeout: 244 seconds)
[06:54:19] --> ttarrant has joined #exult
[07:17:48] <-- Epitrope has left IRC (Ping timeout: 240 seconds)
[07:19:02] --> Epitrope has joined #exult
[07:24:59] <-- Epitrope has left IRC (Ping timeout: 264 seconds)
[07:26:22] --> Epitrope has joined #exult
[07:36:20] <-- ttarrant has left IRC (Ping timeout: 244 seconds)
[07:37:32] --> frob has joined #exult
[07:42:07] <-- frob has left IRC (Ping timeout: 240 seconds)
[08:23:07] --> ttarrant has joined #exult
[09:02:42] <-- Lightkey has left IRC (Ping timeout: 258 seconds)
[09:25:45] --> Rottingbeef_ has joined #exult
[09:27:27] <-- Rottingbeef has left IRC (Ping timeout: 244 seconds)
[12:18:23] <Dominus> https://www.dropbox.com/s/chwoj6e8jxt6jbz/Prompt.png?dl=0
[12:20:03] <Dominus> wjp, Marzo I need help with the iOS port :( For prompting a savegame name we run the iOS input prompt as seen on https://www.dropbox.com/s/chwoj6e8jxt6jbz/Prompt.png?dl=0
[12:20:11] <Dominus> trigger is at https://github.com/litchie/exult-ios/blob/master/gumps/Newfile_gump.cc#L802
[12:20:37] <Dominus> problem is that this will prompt right away when you click on an existing savegame
[12:21:13] <Dominus> it would be better to only prompt to change a savegame name when you hit the same field again
[12:22:03] <Dominus> so if (selected >= 0 and then some other condition but I can't get it to work in any simple way...
[12:25:48] <Marzo> How about: if you select new game (selected == -2), make the prompt appear; if you select an existing game (selected >= 0), require another tap on the same spot
[12:25:54] --> RadoS has joined #exult
[12:26:48] <Marzo> This would require tracking the last selected spot (line 718) and comparing to see if you did not click on a different spot
[12:36:03] <Dominus> Marzo, thanks. I see what you mean, it's just that I can't wrap my head around to see how and where to compare it
[12:36:27] <Marzo> It would be in line 803
[12:36:58] <Marzo> Lets say you add a variable 'last_selected'
[12:37:38] <Marzo> Before line 718, and before any other line that sets selected, you add "last_selected = selected;"
[12:38:09] <Marzo> In what is now line 803, you change the condition from
[12:38:14] <Marzo> if (selected == -2 || selected >= 0) {
[12:38:17] <Marzo> to (say)
[12:38:36] <Marzo> if (selected == -2 || (selected >= 0 && selected == last_selected)) {
[12:45:51] <Dominus> hmm, doesn't prompt
[12:46:27] <Dominus> I added int last_selected; to newfile_gump.h and everything else you wrote
[13:01:47] <Dominus> hmm, Marzo, I've added some cout and it seems it only registers a new value for last_selected when you actually change slots
[13:01:50] <Dominus> so if I tap on line 0 and then line 1 it will show value 0 for last_selected each time I press on line 1
[13:05:32] <-- ttarrant has left IRC (Ping timeout: 265 seconds)
[13:19:08] <Dominus> right, because of if (hit + list_position >= num_games || hit + list_position < -2 || selected == hit + list_position) return true;
[13:19:24] <Dominus> selected == hit + list_position prevents that from updating
[13:23:10] <Dominus> so moving it up to line 712 seems to make it work
[13:23:30] <Dominus> thanks Marzo!
[13:28:32] <Dominus> that has bothered me for a while....
[13:32:24] --> ttarrant has joined #exult
[13:54:55] <-- ttarrant has left IRC (Ping timeout: 265 seconds)
[14:15:23] --> ttarrant has joined #exult
[15:32:48] --> frob has joined #exult
[15:35:27] <-- ttarrant has left IRC (Ping timeout: 240 seconds)
[18:37:05] --> ttarrant has joined #exult
[18:51:38] <-- ttarrant has left IRC (Ping timeout: 276 seconds)
[19:35:10] --> Lightkey has joined #exult