*** tpb has joined #freeorion | 00:00 | |
fixItt | Oh so I probably was trying to connect with signals that occur when the user changes the window which then would select a system? So are you saying there currently is no signal that is emitted that occurs when a user selects a different system? Or actually are the systems apart of a window? | 00:02 |
---|---|---|
GeofftheMedio | oh, I think I was misreading your question | 00:03 |
GeofftheMedio | I thought you were asking about changing the system object itself | 00:03 |
GeofftheMedio | rather than changing which system is selected | 00:03 |
fixItt | Oh no I am just trying to get notified when a system is selected | 00:03 |
GeofftheMedio | There are a few different signals from windows (eg. the sidepanel, probably the encyclopedia) that are emitted when the user changes the system in those windows | 00:05 |
GeofftheMedio | the MapWnd handles these signals, and changes the selected system | 00:05 |
GeofftheMedio | for example in MapWnd::MapWnd: | 00:06 |
GeofftheMedio | GG::Connect(SidePanel::SystemSelectedSignal, &MapWnd::SelectSystem, this); | 00:06 |
fixItt | But what happens if the side panel is not open and a system is changed? how does mapwnd know? | 00:07 |
GeofftheMedio | how is the system being changed in this scenario? | 00:07 |
fixItt | that line is like exactly what I have been looking at trying to get to work lol | 00:07 |
fixItt | like if you click off into space the side panel will hide. I'm assuming its not considered open. and then you select an unknown system | 00:09 |
GeofftheMedio | there are also signals for when system icons are clicked on which connect to MapWnd::SetSystem | 00:09 |
fixItt | okay. well I guess I am a bit confused lol. So I want to update the total/wasted empire PP in the production window, which signal would you recommend I try to connect with? I was figuring that it should be updated whenever a system is changed regardless of what window its in but maybe thats not necessary. | 00:12 |
GeofftheMedio | when the system is changed, or when which system is selected is changed? | 00:13 |
fixItt | sorry my wording has been confusing probably a reflection of my own confusion. But I believe when a system is changed, like the system icon that the user has selected. | 00:14 |
fixItt | so if they select kithrup it will show the system pps for that, if they select something different then it will know to update the values for that system | 00:15 |
GeofftheMedio | that doesn't make sense; which system a user is viewing / has selected, doesn't change the system itself | 00:15 |
GeofftheMedio | you appear to want to respond to user selecting a system | 00:15 |
GeofftheMedio | probably you should add something to ProductionWnd::SelectSystem to update info in to the production screen | 00:16 |
fixItt | okay I probably am mixed up. So on the start up I see kithrup and 3 unknowns, are these not all different systems? I thought when you select one of them then in the side panel what appears are the planets of the systems. | 00:16 |
GeofftheMedio | yes. but the systems themselves are not changed in any way by the user selecting them. | 00:17 |
fixItt | but when you click on one the white circle appers roatating around it. Isn't that what I am interested in, when that is changed update the values? | 00:18 |
GeofftheMedio | yes... but again, the system itself has not changed. just which system is selected has changed. | 00:19 |
fixItt | Ok. I think I have a slightly better understanding lol. But so ProductionWnd::SelectSystem already subscribes to the system selected signal right? So I should just use that to update the values instead of trying to actually catch the system selected changed signal myself? It sounds like I have been making this unnecessarily hard lol | 00:22 |
GeofftheMedio | yes, I think if you want to update a value shown in the production screen when which system is selected changes, doing so from ProductionWnd::SelectSystem makes senes | 00:23 |
GeofftheMedio | sense | 00:23 |
fixItt | Okay tyvm for the help Geoff I will try that out | 00:24 |
*** lethu has quit IRC | 03:45 | |
*** lethu has joined #freeorion | 03:57 | |
*** lethu has joined #freeorion | 03:57 | |
*** StrangerDanger has quit IRC | 04:11 | |
*** STalKer-Y has joined #freeorion | 04:50 | |
*** STalKer-X has quit IRC | 04:50 | |
CIA-32 | FreeOrion: geoffthemedio * r4483 /trunk/FreeOrion/msvc2010/ (6 files in 3 dirs): MSVC 2010 project file updating. | 04:55 |
*** VargaD has joined #freeorion | 08:17 | |
*** neoneurone has joined #freeorion | 09:13 | |
*** theTroy has quit IRC | 10:47 | |
*** theTroy has joined #freeorion | 10:49 | |
*** neoneurone has quit IRC | 11:00 | |
*** __alex has joined #freeorion | 11:35 | |
*** tpb has joined #freeorion | 12:43 | |
*** GeofftheMedio has quit IRC | 13:24 | |
*** CIA-32 has quit IRC | 13:24 | |
*** welterde has quit IRC | 13:24 | |
*** STalKer-Y has quit IRC | 13:24 | |
*** eristikophiles has quit IRC | 13:24 | |
*** Mikoto has quit IRC | 13:24 | |
*** guini has quit IRC | 13:25 | |
*** Ingmar has quit IRC | 13:25 | |
*** __alex has quit IRC | 13:25 | |
*** Digit01 has quit IRC | 13:25 | |
*** dansan has quit IRC | 13:25 | |
*** VargaD has quit IRC | 13:25 | |
*** lethu has quit IRC | 13:25 | |
*** theTroy has quit IRC | 13:25 | |
*** welterde has joined #freeorion | 13:31 | |
*** CIA-32 has joined #freeorion | 13:31 | |
*** eristikophiles has joined #freeorion | 13:31 | |
*** GeofftheMedio has joined #freeorion | 13:31 | |
*** STalKer-Y has joined #freeorion | 13:31 | |
*** lethu has joined #freeorion | 13:31 | |
*** theTroy has joined #freeorion | 13:31 | |
*** VargaD has joined #freeorion | 13:31 | |
*** dansan has joined #freeorion | 13:31 | |
*** Digit01 has joined #freeorion | 13:31 | |
*** __alex has joined #freeorion | 13:31 | |
*** Mikoto has joined #freeorion | 13:31 | |
*** guini has joined #freeorion | 13:31 | |
*** Ingmar has joined #freeorion | 13:31 | |
*** lethu has quit IRC | 13:44 | |
*** GeofftheMedio has quit IRC | 13:44 | |
*** CIA-32 has quit IRC | 13:44 | |
*** welterde has quit IRC | 13:44 | |
*** STalKer-Y has quit IRC | 13:44 | |
*** eristikophiles has quit IRC | 13:44 | |
*** VargaD has quit IRC | 13:44 | |
*** VargaD has joined #freeorion | 13:46 | |
*** lethu has joined #freeorion | 13:48 | |
*** STalKer-Y has joined #freeorion | 13:48 | |
*** GeofftheMedio has joined #freeorion | 13:48 | |
*** eristikophiles has joined #freeorion | 13:48 | |
*** CIA-32 has joined #freeorion | 13:48 | |
*** welterde has joined #freeorion | 13:48 | |
CIA-32 | FreeOrion: geoffthemedio * r4484 /trunk/FreeOrion/ (UI/ProductionWnd.cpp universe/ShipDesign.cpp): | 13:54 |
CIA-32 | FreeOrion: -Moved bulk of PartType constructor code into Init function. | 13:54 |
CIA-32 | FreeOrion: -Grooming | 13:54 |
*** CIA-32 has quit IRC | 15:16 | |
*** Digit01 has quit IRC | 15:17 | |
*** CIA-11 has joined #freeorion | 15:20 | |
*** neoneurone has joined #freeorion | 15:30 | |
*** StrangerDanger has joined #freeorion | 16:25 | |
*** neoneurone has quit IRC | 17:28 | |
*** Digit01 has joined #freeorion | 17:58 | |
*** JohnSGalt has joined #freeorion | 18:15 | |
*** StrangerDanger has quit IRC | 18:17 | |
*** Digit01 has quit IRC | 18:17 | |
*** Xenux has joined #freeorion | 19:41 | |
*** neoneurone has joined #freeorion | 19:52 | |
*** __alex has quit IRC | 19:56 | |
*** Xenux has quit IRC | 20:41 | |
*** neoneurone has quit IRC | 21:34 | |
*** GeofftheMedio has quit IRC | 22:39 | |
*** GeofftheMedio has joined #freeorion | 22:41 | |
*** VargaD has quit IRC | 23:46 | |
*** Mikoto has quit IRC | 23:49 | |
*** Mikoto has joined #freeorion | 23:50 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!