Added blink to the build floater (god damnit mikey)
This commit is contained in:
@@ -118,6 +118,10 @@ BOOL LLPanelObject::postBuild()
|
||||
mCheckPhysics = getChild<LLCheckBoxCtrl>("Physical Checkbox Ctrl");
|
||||
childSetCommitCallback("Physical Checkbox Ctrl",onCommitPhysics,this);
|
||||
|
||||
//Blink [SimmanFederal] Inspired by VLife/Oynx
|
||||
mClickBlink = getChild<LLButton>("button blink");
|
||||
childSetAction("button blink",&onClickBlink,this);
|
||||
|
||||
// Temporary checkbox
|
||||
mCheckTemporary = getChild<LLCheckBoxCtrl>("Temporary Checkbox Ctrl");
|
||||
childSetCommitCallback("Temporary Checkbox Ctrl",onCommitTemporary,this);
|
||||
@@ -477,6 +481,10 @@ void LLPanelObject::getState( )
|
||||
|
||||
// </edit>
|
||||
|
||||
//<derp> Griefer Technology ~[SimmanFederal]
|
||||
childSetEnabled("button blink", root_objectp->permModify());
|
||||
//</derp>
|
||||
|
||||
// Select Single Message
|
||||
childSetVisible("select_single", FALSE);
|
||||
childSetVisible("edit_object", FALSE);
|
||||
@@ -2019,6 +2027,19 @@ void LLPanelObject::onCommitPhysics( LLUICtrl* ctrl, void* userdata )
|
||||
self->sendIsPhysical();
|
||||
}
|
||||
|
||||
//[SimmanFederal] Blinking function. Inspired by VLife/Oynx.
|
||||
void LLPanelObject::onClickBlink(void* data)
|
||||
{
|
||||
LLViewerObject* objpos = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject();
|
||||
if(objpos)
|
||||
{
|
||||
LLVector3 pos = objpos->getPosition();
|
||||
pos.mV[VZ] = 9001.0f;
|
||||
objpos->setPositionParent(pos);
|
||||
LLSelectMgr::getInstance()->sendMultipleUpdate(UPD_POSITION);
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLPanelObject::onCommitTemporary( LLUICtrl* ctrl, void* userdata )
|
||||
{
|
||||
|
||||
@@ -65,6 +65,8 @@ public:
|
||||
|
||||
static BOOL precommitValidate(LLUICtrl* ctrl,void* userdata);
|
||||
|
||||
static void onClickBlink(void* userdata);//[SimmanFederal] Blinking
|
||||
|
||||
static void onCommitLock(LLUICtrl *ctrl, void *data);
|
||||
static void onCommitPosition( LLUICtrl* ctrl, void* userdata);
|
||||
static void onCommitScale( LLUICtrl* ctrl, void* userdata);
|
||||
@@ -151,6 +153,8 @@ protected:
|
||||
LLSpinCtrl* mCtrlPosX;
|
||||
LLSpinCtrl* mCtrlPosY;
|
||||
LLSpinCtrl* mCtrlPosZ;
|
||||
//VLife/Oynx Inspriation. IT BLINKS PRIMS TO 9001.0 METERS. HERP.
|
||||
LLButton* mClickBlink;//[SimmanFederal]
|
||||
|
||||
LLTextBox* mLabelSize;
|
||||
LLSpinCtrl* mCtrlScaleX;
|
||||
|
||||
@@ -910,7 +910,10 @@
|
||||
<combo_item name="Cylinder" value="Cylinder">
|
||||
Cylinder
|
||||
</combo_item>
|
||||
</combo_box>
|
||||
</combo_box><!-- [SimmanFederal] Blink Button -->
|
||||
<button bottom="-360" follows="left|top" font="SansSerifSmall" halign="center"
|
||||
height="20" label="Blink" label_selected="Blink" left="200"
|
||||
mouse_opaque="true" name="button blink" scale_image="TRUE" width="60" />
|
||||
</panel>
|
||||
|
||||
<!-- Features sub-tab -->
|
||||
|
||||
Reference in New Issue
Block a user