Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

View File

@ -0,0 +1,33 @@
#include <lib/std.mi>
Global Button back, forward;
Global Edit editbox;
Global GuiObject xui;
System.onScriptLoaded() {
Group pgroup = getScriptGroup();
if (pgroup == NULL) return;
back = pgroup.findObject("historyeditbox.back.button");
forward = pgroup.findObject("historyeditbox.forward.button");
editbox = pgroup.findObject("historyeditbox.edit");
xui = pgroup.getParent();
if (xui != NULL) {
if (StringToInteger(xui.getXmlParam("navbuttons")) == 0) {
if (back != NULL) back.hide();
if (forward != NULL) forward.hide();
if (editbox != NULL) editbox.setXmlParam("w", "-17");
}
}
}
back.onLeftClick() {
if (xui != NULL)
xui.sendAction("back", "", 0, 0, 0, 0);
}
forward.onLeftClick() {
if (xui != NULL)
xui.sendAction("forward", "", 0, 0, 0, 0);
}

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WinampAbstractionLayer version="0.7">
<groupdef id="wasabi.historyeditbox.main.group" inherit_group="wasabi.objectframe.group" embed_xui="historyeditbox.edit">
<Edit
id="historyeditbox.edit"
x="1" y="1"
w="-51" h="-2"
relatw="1" relath="1"
/>
<Wasabi:button
id="historyeditbox.back.button"
x="-51" y="1"
w="17" h="-2"
relatx="1" relath="1"
image="wasabi.button.label.arrow.left"
center_image="1" wantfocus="0"
/>
<Wasabi:button
id="historyeditbox.forward.button"
x="-35" y="1"
w="17" h="-2"
relatx="1" relath="1"
image="wasabi.button.label.arrow.right"
center_image="1" wantfocus="0"
/>
<Wasabi:button
id="historyeditbox.button"
x="-18" y="1"
w="17" h="-2"
relatx="1" relath="1"
image="wasabi.button.label.arrow.down"
center_image="1" wantfocus="0"
/>
<script id="historyeditbox.navbuttons" file="historyeditbox.maki" />
</groupdef>
<groupdef id="wasabi.historyeditbox.list.group" minimum_h="64" background="studio.BaseTexture">
<grid
id="historyeditbox.grid"
x="0" y="0"
w="0" h="0"
relatw="1" relath="1"
topleft="wasabi.dropdownlist.list.top.left"
top="wasabi.dropdownlist.list.top"
topright="wasabi.dropdownlist.list.top.right"
left="wasabi.dropdownlist.list.left"
middle="wasabi.dropdownlist.list.center"
right="wasabi.dropdownlist.list.right"
bottomleft="wasabi.dropdownlist.list.bottom.left"
bottom="wasabi.dropdownlist.list.bottom"
bottomright="wasabi.dropdownlist.list.bottom.right"
sysregion="1"
/>
<list id="historyeditbox.list" x="2" y="2" w="-4" h="-4" relatw="1" relath="1" nocolheader="1"/>
<layer x="0" y="-2" relaty="1" w="0" relatw="1" h="2" resize="bottom" />
</groupdef>
</WinampAbstractionLayer>