Global anim doesn't render properly in doors

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
Eizzoux
Posts: 597
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Global anim doesn't render properly in doors

Post by Eizzoux »

I wanted to do custom editor button with global anims being rendered inside the boundaries of 'door_2', but I've got an annoying problem: I coundn't find that anim and thought it just wasn't rendering at all since it draws in the zeroth position of main 'door_2', not the exclusive 'door_2.EDITOR':

Code: Select all

viewport.door_2.x:				0
viewport.door_2.y:				449
viewport.door_2.border_size:			0
viewport.door_2.PLAYING.align:			center
viewport.door_2.EDITOR.x:			0
viewport.door_2.EDITOR.y:			0
viewport.door_2.EDITOR.width:			80
viewport.door_2.EDITOR.height:			434
viewport.door_2.EDITOR.align:			right
global.anim_10.part_1.EDITOR.x:			0
global.anim_10.part_1.EDITOR.y:			0
global.anim_10.part_1.EDITOR.anim_event:	click
global.anim_10.part_1.EDITOR.class:		door_2
Later on, I tried to add this button to just original graphics, which has only difference in 'viewport.door_2.y' and 'viewport.door_2.height' for main and editor Door 2 viewports - in editor door_2 is 44 pixels higher in height and it's position is 44 pixels higher. So, after I added anim to editor Door 2 with 'x: 0' and 'y: 0', it actually appears 44 pixels lower

Code: Select all

global.anim_1.part_1.EDITOR.x:		0
global.anim_1.part_1.EDITOR.y:		0
global.anim_1.part_1.EDITOR.anim_event:	click
global.anim_1.part_1.EDITOR.class:	door_2
asjkd.png
asjkd.png (38.58 KiB) Viewed 3021 times
𒈟
User avatar
Holger
Site Admin
Posts: 4178
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Global anim doesn't render properly in doors

Post by Holger »

What a nasty bug! :shock:

Just fixed it! Please see the new development executable (just uploaded). :)
Post Reply