#include "borderimage.qh"
#include "nexposee.qh"
#include "dialog.qh"
Go to the source code of this file.
|
void | BorderImage_configureBorderImage (entity me, string theTitle, float sz, vector theColor, string path, float theBorderHeight) |
|
void | BorderImage_draw (entity me) |
|
void | BorderImage_recalcPositionWithText (entity me, string t) |
|
void | BorderImage_resizeNotify (entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize) |
|
◆ BorderImage_configureBorderImage()
Definition at line 43 of file borderimage.qc.
45 me.configureLabel(me, theTitle, sz, 0.5);
48 me.borderHeight = theBorderHeight;
◆ BorderImage_draw()
Definition at line 50 of file borderimage.qc.
References boxToGlobalSize(), draw_BorderPicture(), draw_fontscale, globalToBoxSize(), SUPER, and vector().
56 if (me.recalcPos) me.recalcPositionWithText(me, me.text);
58 if (me.isNexposeeTitleBar)
67 me.realOrigin = ro * me.parent.Nexposee_animationFactor + me.realOrigin_Nexposeed * (1 - me.parent.Nexposee_animationFactor);
68 me.realFontSize = rf * me.parent.Nexposee_animationFactor + me.realFontSize_Nexposeed * (1 - me.parent.Nexposee_animationFactor);
vector(float skel, float bonenum) _skel_get_boneabs_hidden
◆ BorderImage_recalcPositionWithText()
Definition at line 5 of file borderimage.qc.
References boxToGlobal(), boxToGlobalSize(), conheight, conwidth, eX, eY, SUPER, and vector().
7 if (me.isNexposeeTitleBar)
11 me.resizeNotify(me, me.saveRelOrigin, me.saveRelSize,
boxToGlobal(me.parent.Nexposee_smallOrigin,
'0 0 0', scrs),
boxToGlobalSize(me.parent.Nexposee_smallSize, scrs));
13 me.realOrigin_y = me.realFontSize.y * me.zoomedOutTitleBarPosition;
14 me.realOrigin_Nexposeed = me.realOrigin;
15 me.realFontSize_Nexposeed = me.realFontSize;
16 me.resizeNotify(me, me.saveRelOrigin, me.saveRelSize,
boxToGlobal(me.parent.Nexposee_initialOrigin,
'0 0 0', scrs),
boxToGlobalSize(me.parent.Nexposee_initialSize, scrs));
vector(float skel, float bonenum) _skel_get_boneabs_hidden
◆ BorderImage_resizeNotify()
Definition at line 20 of file borderimage.qc.
References SUPER.
22 me.isNexposeeTitleBar = 0;
23 if (me.zoomedOutTitleBar)
24 if (me.parent.parent.instanceOfNexposee)
25 if (me.parent.instanceOfDialog)
26 if (me == me.parent.frame) me.isNexposeeTitleBar = 1;
27 me.saveRelOrigin = relOrigin;
28 me.saveRelSize = relSize;
30 me.borderVec_x = me.borderHeight / absSize.x;
31 me.borderVec_y = me.borderHeight / absSize.y;
32 me.realOrigin_y = 0.5 * (me.borderVec.y - me.realFontSize.y);
36 me.closeButton.Container_origin =
'1 0 0' * (1 - me.borderVec.x);
37 me.closeButton.Container_size = me.borderVec;
38 me.closeButton.color = me.color;
39 me.closeButton.colorC = me.color;
40 me.closeButton.colorF = me.color;