mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
*** empty log message ***
This commit is contained in:
parent
339036a6b0
commit
6ff72bf4af
@ -703,11 +703,17 @@ get_card_as_set() const {
|
||||
// size of the current text; if the card was set via
|
||||
// set_card_actual(), this returns the values
|
||||
// actually set.
|
||||
//
|
||||
// If the text has no card at all, this returns the
|
||||
// dimensions of the text itself, as if the card were
|
||||
// set with a margin of 0, 0, 0, 0.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE LVecBase4f TextNode::
|
||||
get_card_actual() const {
|
||||
nassertr(has_card(), LVecBase4f(0.0, 0.0, 0.0, 0.0));
|
||||
if (is_card_as_margin()) {
|
||||
if (!has_card()) {
|
||||
return LVecBase4f(get_left(), get_right(), get_bottom(), get_top());
|
||||
|
||||
} else if (is_card_as_margin()) {
|
||||
return LVecBase4f(get_left() - _card_ul[0],
|
||||
get_right() + _card_lr[0],
|
||||
get_bottom() - _card_lr[1],
|
||||
@ -849,11 +855,15 @@ get_bin() const {
|
||||
// This affects the sorting order assigned to the arcs
|
||||
// as they are created, and also is passed to whatever
|
||||
// bin may be assigned via set_bin().
|
||||
//
|
||||
// The return value is the first unused draw_order
|
||||
// number, e.g. _draw_order + 3.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void TextNode::
|
||||
INLINE int TextNode::
|
||||
set_draw_order(int draw_order) {
|
||||
_draw_order = draw_order;
|
||||
rebuild(false);
|
||||
return _draw_order + 3;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -128,7 +128,7 @@ PUBLISHED:
|
||||
INLINE bool has_bin() const;
|
||||
INLINE const string &get_bin() const;
|
||||
|
||||
INLINE void set_draw_order(int draw_order);
|
||||
INLINE int set_draw_order(int draw_order);
|
||||
INLINE int get_draw_order() const;
|
||||
|
||||
INLINE void set_billboard(bool billboard);
|
||||
|
Loading…
x
Reference in New Issue
Block a user