mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
switch back to vertical bar cursor
This commit is contained in:
parent
fe30a13f72
commit
2e1ba33307
@ -25,9 +25,9 @@
|
|||||||
#include "mouseWatcherParameter.h"
|
#include "mouseWatcherParameter.h"
|
||||||
#include "keyboardButton.h"
|
#include "keyboardButton.h"
|
||||||
#include "mouseButton.h"
|
#include "mouseButton.h"
|
||||||
#include "lineSegs.h"
|
#include "qplineSegs.h"
|
||||||
|
|
||||||
#include "math.h"
|
#include <math.h>
|
||||||
|
|
||||||
TypeHandle qpPGEntry::_type_handle;
|
TypeHandle qpPGEntry::_type_handle;
|
||||||
|
|
||||||
@ -592,17 +592,17 @@ setup(float width, int num_lines) {
|
|||||||
// Set up a default cursor: a vertical bar.
|
// Set up a default cursor: a vertical bar.
|
||||||
clear_cursor_def();
|
clear_cursor_def();
|
||||||
|
|
||||||
/*
|
qpLineSegs ls;
|
||||||
LineSegs ls;
|
|
||||||
ls.set_color(0.0f, 0.0f, 0.0f, 1.0f);
|
ls.set_color(0.0f, 0.0f, 0.0f, 1.0f);
|
||||||
ls.move_to(0.0f, 0.0f, -0.15f * line_height);
|
ls.move_to(0.0f, 0.0f, -0.15f * line_height);
|
||||||
ls.draw_to(0.0f, 0.0f, 0.85f * line_height);
|
ls.draw_to(0.0f, 0.0f, 0.85f * line_height);
|
||||||
new RenderRelation(get_cursor_def(), ls.create());
|
get_cursor_def()->add_child(ls.create());
|
||||||
*/
|
|
||||||
|
/*
|
||||||
// An underscore cursor would work too.
|
// An underscore cursor would work too.
|
||||||
text_node->set_text("_");
|
text_node->set_text("_");
|
||||||
get_cursor_def()->add_child(text_node->generate());
|
get_cursor_def()->add_child(text_node->generate());
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user