Index: ps/trunk/binaries/data/config/default.cfg
===================================================================
--- ps/trunk/binaries/data/config/default.cfg
+++ ps/trunk/binaries/data/config/default.cfg
@@ -147,9 +147,10 @@
bigscreenshot = "Shift+F2" ; Take large BMP screenshot
togglefullscreen = "Alt+Return" ; Toggle fullscreen/windowed mode
screenshot.watermark = "Alt+K" ; Toggle product/company watermark for official screenshots
-wireframe = "Alt+W" ; Toggle wireframe mode
-silhouettes = "Alt+S" ; Toggle unit silhouettes
+wireframe = "Alt+Shift+W" ; Toggle wireframe mode
+silhouettes = "Alt+Shift+S" ; Toggle unit silhouettes
showsky = "Alt+Z" ; Toggle sky
+summary = "Ctrl+Tab" ; Toggle in-game summary
; > CLIPBOARD CONTROLS
copy = "Ctrl+C" ; Copy to clipboard
@@ -329,6 +330,10 @@
fastforward = Space ; If timewarp mode enabled, speed up the game
rewind = Backspace ; If timewarp mode enabled, go back to earlier point in the game
+[hotkey.tab]
+next = "Alt+S" ; Show the next tab
+prev = "Alt+W" ; Show the previous tab
+
[hotkey.text] ; > GUI TEXTBOX HOTKEYS
delete.left = "Ctrl+Backspace" ; Delete word to the left of cursor
delete.right = "Ctrl+Del" ; Delete word to the right of cursor
Index: ps/trunk/binaries/data/mods/public/gui/credits/credits.js
===================================================================
--- ps/trunk/binaries/data/mods/public/gui/credits/credits.js
+++ ps/trunk/binaries/data/mods/public/gui/credits/credits.js
@@ -1,6 +1,7 @@
var g_PanelNames = ["special", "programming", "art", "translators", "misc", "donators"];
var g_ButtonNames = {};
var g_PanelTexts = {};
+var g_SelectedPanel = 0;
function init()
{
@@ -21,9 +22,17 @@
selectPanel(0);
}
-function placeButtons()
+/*
+ * Show next/previous panel.
+ * @param direction - 1/-1 forward, backward panel.
+ */
+function selectNextTab(direction)
{
+ selectPanel((g_SelectedPanel + direction + g_PanelNames.length) % g_PanelNames.length);
+}
+function placeButtons()
+{
for (let i = 0; i < g_PanelNames.length; ++i)
{
let button = Engine.GetGUIObjectByName("creditsPanelButton[" + i + "]");
@@ -32,6 +41,8 @@
warn("Could not display some credits.");
break;
}
+ button.onMouseWheelUp = () => selectNextTab(1);
+ button.onMouseWheelDown = () => selectNextTab(-1);
button.hidden = false;
let size = button.size;
size.top = i * 35;
@@ -84,6 +95,7 @@
function selectPanel(i)
{
+ g_SelectedPanel = i;
Engine.GetGUIObjectByName("creditsPanelButtons").children.forEach((button, j) => {
button.sprite = i == j ? "ModernTabVerticalForeground" : "ModernTabVerticalBackground";
});
Index: ps/trunk/binaries/data/mods/public/gui/credits/credits.xml
===================================================================
--- ps/trunk/binaries/data/mods/public/gui/credits/credits.xml
+++ ps/trunk/binaries/data/mods/public/gui/credits/credits.xml
@@ -14,6 +14,14 @@
+
+
+
+