who isn't sick of converting the freaking scripts? this negates the need

This commit is contained in:
DarthArgus
2015-11-24 09:27:45 -06:00
parent 2e64106bc8
commit bbee2d328c
11077 changed files with 2604347 additions and 3425075 deletions
@@ -0,0 +1,70 @@
package script.player;
import script.*;
import script.base_class.*;
import script.combat_engine.*;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import script.base_script;
import script.library.slicing;
import script.library.sui;
public class player_slicing extends script.base_script
{
public player_slicing()
{
}
public int handleSlicingCategory(obj_id self, dictionary params) throws InterruptedException
{
int idx = sui.getListboxSelectedRow(params);
if (idx < 0)
{
idx = 0;
}
obj_id player = sui.getPlayerId(params);
int btn = sui.getIntButtonPressed(params);
if (btn == sui.BP_CANCEL)
{
slicing.clearSlicing(self);
return SCRIPT_CONTINUE;
}
slicing.handleSlicingCategory(self, idx);
return SCRIPT_CONTINUE;
}
public int handleSlicingSelect(obj_id self, dictionary params) throws InterruptedException
{
int idx = sui.getListboxSelectedRow(params);
if (idx < 0)
{
idx = 0;
}
obj_id player = sui.getPlayerId(params);
int btn = sui.getIntButtonPressed(params);
if (btn == sui.BP_CANCEL)
{
slicing.clearSlicing(self);
return SCRIPT_CONTINUE;
}
slicing.handleSlicingSelect(self, idx);
return SCRIPT_CONTINUE;
}
public int handleApplySlice(obj_id self, dictionary params) throws InterruptedException
{
int idx = sui.getListboxSelectedRow(params);
if (idx < 0)
{
idx = 0;
}
obj_id player = sui.getPlayerId(params);
int btn = sui.getIntButtonPressed(params);
if (btn == sui.BP_CANCEL)
{
slicing.clearSlicing(self);
return SCRIPT_CONTINUE;
}
slicing.handleApplySlice(self, idx);
return SCRIPT_CONTINUE;
}
}