mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user