setBarPositions.d is a script that allows changing position of original gothic bars (HP, Mana, Swim, focus). Changes are directly in the engine, so bars are normally scaled.
funcintSetBarPosition(varintbarPtr){varoCViewStatusBarbar;bar=_^(barPtr);varintx;varinty;if(barPtr==MEM_Game.hpBar){// Originalx=Print_ToVirtual(10,PS_X);// 10 px from the lefty=PS_VMax-Print_ToVirtual(10+bar.zCView_psizey,PS_Y);// 10 px from the bottom}elseif(barPtr==MEM_Game.manaBar){// Originalx=PS_VMax-Print_ToVirtual(10+bar.zCView_psizex,PS_X);// 10 px from the righty=PS_VMax-Print_ToVirtual(10+bar.zCView_psizey,PS_Y);// 10 px from the bottom}elseif(barPtr==MEM_Game.swimBar){// Originalx=(PS_VMax-bar.zCView_vsizex)/2;// Centeredy=PS_VMax-Print_ToVirtual(10+bar.zCView_psizey,PS_Y);// 10 px from the bottom}elseif(barPtr==MEM_Game.focusBar){// Originalx=(PS_VMax-bar.zCView_vsizex)/2;// Centeredy=Print_ToVirtual(10,PS_Y);// 10 px from the top};returnx|(y<<14);};
/* * EXAMPLE: Stacked on the left */funcintSetBarPosition(varintbarPtr){varoCViewStatusBarbar;bar=_^(barPtr);varintx;varinty;if(barPtr==MEM_Game.hpBar){x=Print_ToVirtual(10,PS_X);y=PS_VMax-Print_ToVirtual(6+3*(4+bar.zCView_psizey),PS_Y);}elseif(barPtr==MEM_Game.manaBar){x=Print_ToVirtual(10,PS_X);y=PS_VMax-Print_ToVirtual(6+2*(4+bar.zCView_psizey),PS_Y);}elseif(barPtr==MEM_Game.swimBar){x=Print_ToVirtual(10,PS_X);y=PS_VMax-Print_ToVirtual(6+1*(4+bar.zCView_psizey),PS_Y);}elseif(barPtr==MEM_Game.focusBar){// Originalx=(PS_VMax-bar.zCView_vsizex)/2;// Centeredy=Print_ToVirtual(10,PS_Y);// 10 px from the top};returnx|(y<<14);};