Branch: refs/heads/master Home: https://github.com/Warzone2100/warzone2100 Commit: 904b442f012755c81c415a1cea901953821fe10f https://github.com/Warzone2100/warzone2100/commit/904b442f012755c81c415a1cea901953821fe10f Author: Thiago Barcala <thiago.barc...@gmail.com> Date: 2021-04-26 (Mon, 26 Apr 2021)
Changed paths: M lib/framework/geometry.h M lib/widget/bar.cpp M lib/widget/bar.h M lib/widget/button.cpp M lib/widget/button.h M lib/widget/form.cpp M lib/widget/form.h M lib/widget/label.cpp M lib/widget/label.h M lib/widget/tip.cpp M lib/widget/tip.h M lib/widget/widgbase.h M lib/widget/widget.cpp M lib/widget/widget.h Log Message: ----------- Refactor tip module With this approach, the widgets that display tips need only to override getTip and return a non-empty string for the tip to be displayed. All the triggers for displaying/hiding the tips were moved to the tip module. The tip module will also try to refresh the tip on every frame, in case there is a tip being shown. Commit: cfcf1896c52feabd2921a704df8b8d9bd9366448 https://github.com/Warzone2100/warzone2100/commit/cfcf1896c52feabd2921a704df8b8d9bd9366448 Author: Thiago Barcala <thiago.barc...@gmail.com> Date: 2021-04-26 (Mon, 26 Apr 2021) Changed paths: M lib/widget/tip.cpp Log Message: ----------- Restrict tip refresh to once every 500ms Compare: https://github.com/Warzone2100/warzone2100/compare/22fb1ddae3d0...cfcf1896c52f _______________________________________________ Warzone2100-commits mailing list Warzone2100-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/warzone2100-commits