mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Merge pull request #7250 from ZappoMan/smallFix
fix a couple bugs in this script
This commit is contained in:
commit
b096e062e6
1 changed files with 3 additions and 4 deletions
|
@ -17,14 +17,14 @@
|
||||||
function ToggleButtonBuddy(x, y, width, height, urls) {
|
function ToggleButtonBuddy(x, y, width, height, urls) {
|
||||||
this.up = Overlays.addOverlay("image", {
|
this.up = Overlays.addOverlay("image", {
|
||||||
x: x, y: y, width: width, height: height,
|
x: x, y: y, width: width, height: height,
|
||||||
subImage: { x: 0, y: height, width: width, height: height},
|
subImage: { x: 0, y: 0, width: width, height: height},
|
||||||
imageURL: urls.up,
|
imageURL: urls.up,
|
||||||
visible: true,
|
visible: true,
|
||||||
alpha: 1.0
|
alpha: 1.0
|
||||||
});
|
});
|
||||||
this.down = Overlays.addOverlay("image", {
|
this.down = Overlays.addOverlay("image", {
|
||||||
x: x, y: y, width: width, height: height,
|
x: x, y: y, width: width, height: height,
|
||||||
subImage: { x: 0, y: height, width: width, height: height},
|
subImage: { x: 0, y: 0, width: width, height: height},
|
||||||
imageURL: urls.down,
|
imageURL: urls.down,
|
||||||
visible: false,
|
visible: false,
|
||||||
alpha: 1.0
|
alpha: 1.0
|
||||||
|
@ -120,7 +120,6 @@ coatButton.addToggleHandler(function (isDown) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function wearAttachment(attachment) {
|
function wearAttachment(attachment) {
|
||||||
MyAvatar.attach(attachment.modelURL,
|
MyAvatar.attach(attachment.modelURL,
|
||||||
attachment.jointName,
|
attachment.jointName,
|
||||||
|
@ -144,5 +143,5 @@ function removeAttachment(attachment) {
|
||||||
|
|
||||||
Script.scriptEnding.connect(function() {
|
Script.scriptEnding.connect(function() {
|
||||||
hatButton.destroy();
|
hatButton.destroy();
|
||||||
coatbutton.destroy();
|
coatButton.destroy();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue