*** tpb has joined #freeorion | 00:00 | |
*** STalKer-X has joined #freeorion | 01:10 | |
*** Gallaecio has quit IRC | 01:30 | |
*** STalKer-X has quit IRC | 01:31 | |
*** STalKer-X has joined #freeorion | 01:55 | |
*** neuro8 has joined #freeorion | 02:11 | |
neuro8 | natives | 02:11 |
---|---|---|
GeofftheMedio | indeed | 02:32 |
neuro8 | I didn't see it in the 3.16 notes. Are they programmatically in? Or supported via text files? | 02:41 |
neuro8 | Does this make sense : | 02:51 |
neuro8 | lower_right_wnd->SizeMove(m_tab->RelativeUpperLeft() + Pt(X(bn_width),Y(m_tab->Size().y)), Size()); | 02:51 |
GeofftheMedio | they aren't in v0.3.16 | 03:02 |
GeofftheMedio | there's no extra text file; they're just added using existing species | 03:02 |
neuro8 | Ah ok | 03:02 |
*** STalKer-X has quit IRC | 03:07 | |
GeofftheMedio | I never remember when you need relative or absolute window positions... | 03:07 |
neuro8 | I'm in a a weird logical puzzle | 03:08 |
GeofftheMedio | looks like you're overcomplicating things | 03:08 |
neuro8 | Yeah maybe I am | 03:11 |
neuro8 | I had the two windows added. The splitter is there and displaying | 03:11 |
neuro8 | I just can't get it to display between the two windows or make the two windows display between the splitter properly | 03:11 |
neuro8 | I tried to get the logic in : void Splitter::SizeMove(const Pt& ul, const Pt& lr) | 03:12 |
neuro8 | but this is called, then this | 03:12 |
neuro8 | void Splitter::UpdatePosn() | 03:12 |
neuro8 | void Splitter::MoveTabToPosn() | 03:12 |
*** STalKer-X has joined #freeorion | 03:14 | |
GeofftheMedio | sizemove is called when the window is resized or moved | 03:16 |
GeofftheMedio | usually you'd do nothing if the size hasn't changed | 03:16 |
neuro8 | Gotcha. | 03:17 |
GeofftheMedio | but if it has, then reposition contents to use up the size | 03:17 |
GeofftheMedio | put the left / top window at X(0) and Y(0), add its desired width or height, then the splitter would go at X(0) and Y(height1) .. or .. X(width1) and Y(0) | 03:17 |
neuro8 | Hmmm | 03:18 |
GeofftheMedio | then add the splitter width or height, and the lower right window would extend from X(0) and Y(height1 + splitterheight) to Size() .. or .. X(width1 + splitterwidth) and Y(0) to Size() | 03:19 |
GeofftheMedio | where Size() is the size of the whole space you're filling | 03:19 |
neuro8 | Aren't they dependent on the position of the splitter? | 03:19 |
neuro8 | i | 03:19 |
neuro8 | .e | 03:19 |
neuro8 | Sorry, computer slowing because I'm building | 03:19 |
GeofftheMedio | yes, the splitter position determines height1 or width1 | 03:20 |
neuro8 | Ok, let me try that at least | 03:22 |
neuro8 | There's two parts. One when the splitter moves, the other when the whole window is resize | 03:22 |
neuro8 | d | 03:22 |
GeofftheMedio | how to move the splitter when the window resizes, I'm not sure. it needs to respect the contained window minimum usable sizes, which may translate into a minimum size for the whole slitter | 03:24 |
GeofftheMedio | Layout also has option to set the relative scaling rate of rows and columns. something similar might be appropriate for splitter | 03:24 |
GeofftheMedio | but for a first draft, just make a simple assumption, like the lower-right window does all the rescaling when the splitter is resized | 03:25 |
GeofftheMedio | or equal splitting of resizing between the contained wnds, with the splitter tab moving accordingly | 03:25 |
neuro8 | That's what I was thinking | 03:27 |
neuro8 | That if it lengthens or what-not, it's one window or the other resizing | 03:27 |
neuro8 | Damn xcode crashed | 03:37 |
neuro8 | gotta love ternary conditionals | 03:47 |
neuro8 | Awesome! I got one window and the splitter to work | 04:23 |
neuro8 | Working on the other | 04:23 |
neuro8 | Right, well, at least one works. I'll figure the other out. Thx | 04:43 |
*** neuro8 has quit IRC | 04:43 | |
*** Gallaecio has joined #freeorion | 10:47 | |
*** neuro8 has joined #freeorion | 14:13 | |
*** StrangerDanger has joined #freeorion | 14:55 | |
CIA-19 | FreeOrion: geoffthemedio * r4065 /trunk/FreeOrion/universe/ (Condition.cpp Condition.h): (log message trimmed) | 15:02 |
CIA-19 | FreeOrion: Semi-experimental reworking of a condition (EmpireAffiliation in this case) to | 15:02 |
CIA-19 | FreeOrion: optimize its evaluation in cases where a parameter's value (empire id in this | 15:02 |
CIA-19 | FreeOrion: case) doesn't depend on the object being matched. This is done by checking if | 15:02 |
CIA-19 | FreeOrion: the ValueRef is constant (hard-coded single value, not an object reference like | 15:02 |
CIA-19 | FreeOrion: Source.Owner or LocalCandidate.Owner), and if it is constant, only evaluating | 15:02 |
CIA-19 | FreeOrion: the ValueRef once and then matching all candidates against the single result. | 15:02 |
*** Gallaecio has quit IRC | 20:18 | |
*** Gallaecio has joined #freeorion | 20:30 | |
*** Gallaecio has quit IRC | 21:54 | |
*** neuro8 has quit IRC | 22:13 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!