Sunday, 2012-01-15

*** tpb has joined #freeorion00:00
*** dansan_ has joined #freeorion00:11
*** dansan has quit IRC00:11
*** dansan has joined #freeorion01:14
*** dansan_ has quit IRC01:14
*** dansan has quit IRC01:38
*** dansan_ has joined #freeorion01:38
*** fdfdfd has quit IRC01:40
fixItfor adding slot type tool tips, right now i have the toop tip displaying saying the correct slot and string/desc02:47
fixItmy issue is with the tooltip icon02:48
GeofftheMedio...?02:48
fixItas of now I can only get the generic part icon to display, I tried adding an entry in ship_parts for the 2 slot types but things don't seem to be working02:48
GeofftheMedioI don't follow what you're trying to do...02:49
fixItadd tool tips to internal and external slots. So when their empty and you hover over them it says the slot. and when their occupied it will use the part tool tip and just say the slot type.02:50
fixItfor the actual icon of the tool tip i was going to have it show the internal/external slot icon or is only the description necessary for slots?02:50
fixItfrom the wiki:02:51
fixItAdd tooltips to SlotControls. PartControls (in the parts list, or after being dropped into a SlotControl) have tooltips indicating what kind of part they are. Empty SlotControls (in the middle panel where parts can be dropped after selecting a hull) could also have a tooltip indicating what kind of slot they are. This should be fairly simple to do by copying what's done for PartControls. Make sure that SlotControl tooltips are repl02:51
fixItaced by PartControl tooltips when a PartControl is dropped into a SlotControl, though, or modify the PartControl tooltip when it is in a SlotControl, to indicate what kind of slot the part is in (this would be preferred).02:51
GeofftheMedioright, tooltips, but how are you trying to get icons in the tooltips, and what's not working?02:53
fixItso basically I currently have a tool tip displying for slot controls which says the slot type for example: "External" and then for the description "This is an external slot". The icon for the slot control tool tip as of right is a generic_part. ClientUI::PartTexture won't give a texture if it can't make a part from a given name, and from what I can tell there is no entry in ship_parts.txt02:55
GeofftheMedioso don't call PartTexture when you don't want a texture for a part, which is the case if you want a texture for a slot02:56
fixItwhat would I want to call? Or am I going to have to make something different? the slot images are in the ship_parts folder thats why I was trying to get things to work with PartTexture. From what I see all of the Texture getter methods all try to make an object of what you give first..02:58
GeofftheMediolook up however slotcontrol gets its texture, and do that for the tooltip03:02
GeofftheMedioor if you're creating the tooltip from within the slotcontrol, it might store a pointer to its texture, in which case, you could just use that03:02
fixItAh okay thanks. My next question however is how do you want the unified tool tip to look when a part is in a slot. Should I just add on to the part description "This is an external slot."?03:08
GeofftheMediomaybe Part Name (External Slot) or  Part Name in External Slot03:10
GeofftheMedioand just "Empty" for the main text when there's no part in the slot03:10
*** STalKer-X has joined #freeorion04:34
*** STalKer-Y has quit IRC04:37
CIA-32FreeOrion: geoffthemedio * r4591 /trunk/FreeOrion/ (UI/DesignWnd.cpp default/eng_stringtable.txt): Patch by fixIt to add SlotControl tooltips05:25
*** StrangerDanger has quit IRC06:27
GeofftheMediofixIt: You might consider tackling a bigger task; you've eaten through about 6 of the smaller ones in the last 3 days07:18
GeofftheMediohaving a few easy to tackle tasks left would be good for other new contributors, and at this rate, it probably wouldn't take you too long to do something bigger anyway...07:19
fixItAlright yea that sounds good. After I finish up the resource directory patch I'll move on to something bigger. I've just been trying to get a solid grasp of the code base and while I still have a lot more to learn I feel a lot more confident about it then I did 3 days ago07:53
fixItDo you think the configurable keyboard bindings would make for a hard enough task?08:04
GeofftheMedioit's certainly a step up08:30
GeofftheMediothere's a bunch of discussion about how to implement it on the forums08:30
GeofftheMediosomeone had a go at it a while ago, but didn't use (IMO) a good method08:31
*** Digit_01 has quit IRC08:58
*** Digit01 has joined #freeorion08:58
*** eristikophiles has quit IRC09:54
*** eristikophiles has joined #freeorion09:55
*** fixIt has quit IRC11:59
*** fixIt has joined #freeorion11:59
*** fdfdfd has joined #freeorion12:54
*** Xenux has joined #freeorion13:44
*** VargaD has joined #freeorion14:57
*** theTroy has quit IRC16:09
*** theTroy has joined #freeorion16:10
*** dansan_ has quit IRC16:26
*** dansan has joined #freeorion16:27
*** __alex has joined #freeorion17:20
*** dansan has quit IRC17:48
*** SWAT has quit IRC18:22
*** SWAT has joined #freeorion18:34
fixItI took a look at the old keybinding discussion and I have one initial question. So there is mention of a state machine for which window is currently active. So the purpose being in a different window you can have the same key binding do a different thing correct? Is there anything currently implemented that I can get the current state from or am I going to need to set up signals to be emitted when a certain window is opened orclose19:36
fixItd?19:36
fixItAlso from what I see right now are there even any key bindings that are dependent upon what window is open? From what I can tell there is only the same key bindings for everything regardless of what window is open. What would some examples of key bindings be that you would want to work differently based on the context of what window is open?19:37
GeofftheMediothere is a state machine set up for the client, in HumanClientFSM.cpp19:41
GeofftheMediousing it is a bit complicated, though19:41
GeofftheMediokey bindings that change are the disabling of any alphanumeric hotkeys while typing chat19:42
GeofftheMedioand disabling of any hotkey that opens a window (eg production) when not playing a game19:42
GeofftheMedioor disabling hot keys related to the galaxy map while in a 3D combat19:42
*** neoneurone has joined #freeorion20:11
*** StrangerDanger has joined #freeorion20:20
*** neoneurone has quit IRC20:47
*** fdfdfd has quit IRC21:36
fixItOkay So I am looking at the FSM and see it has the different events that would enable me to know what is going on. So the ClientApp when things happen does process_event which the FSM then determines what is the next state and tells the ClientApp to do things accordingly. I however don't really see any the humanclientapp or therefore anything accessing what the FSM state is, just telling the fsm an event occured. How exactly do I g21:42
fixIto about grabbing the current state?21:42
GeofftheMedioyou don't need to poll the current state;21:42
GeofftheMediothe reactions to the FSM state change and initialization of states are where you'd implement state-specfic things21:43
*** Xenux has quit IRC21:47
fixItOh okay that does make a lot more sense thanks. So for instance in the PlayingGame::react(PlayerChat) I would maybe add something like GetHotKeyManager().UpdateUIMode(UI_MODE_PLAYER_CHAT). Then in my hotkey manager I would disable the necessary keybind signals from firiing?21:52
fixItBut actually Player Chat and Lobby chat are for when a message is actually entered into the chat. So i'm not sure how those would help me. Because I want to know when a player is typing in the chat or has their cursor in the chat window right? So then I would have to add a new state event for this?22:02
GeofftheMedioyes, probably22:22
GeofftheMediogoing into and out of a substate of playingturn or waiting for turn data (or some other state) when the chatwnd gains / loses focus22:23
*** VargaD has quit IRC23:09
CIA-32FreeOrion: geoffthemedio * r4592 /trunk/FreeOrion/ (3 files in 2 dirs):23:11
CIA-32FreeOrion: -Reduced number of troop ships in starting fleet, and added ground troop bonus to cultural archives. This will make invasions at the start of the game impossible without building a few extra troop ships.23:11
CIA-32FreeOrion: -Updated Version.cpp.23:11
*** Digit01 has quit IRC23:29

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!