URL:
<http://gna.org/patch/?6079>
Summary: Multipliers: show current value as well as target
Project: Freeciv
Submitted by: jtn
Submitted on: Sun 10 May 2015 11:47:00 BST
Category: client-gtk-2.0
Priority: 5 - Normal
Status: In Progress
Privacy: Public
Assigned to: jtn
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0, 3.0.0
_______________________________________________________
Details:
After patch #5341, there will be a delay in multipliers taking effect. The UI
should show the value current in force as well as the target the player has
set.
I've done this using gtk_scale_add_mark()
<https://developer.gnome.org/gtk2/stable/GtkScale.html#gtk-scale-add-mark>. In
Gtk2, this was not available until 2.16, whereas our minimum version is 2.12.
I've gone for silently compiling out the UI, since it's not critical and the
situation is unlikely to come up.
(Using these marks causes the slider to snap to them when dragged with the
mouse. I was a bit worried but actually it doesn't look too annoying. On very
fine policy scales it may be necessary to use the arrow keys to make a small
adjustment from the current value.)
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6079>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev