50FloorIndicator::FloorIndicator(
Object *parent,
int index,
int elevator,
int car,
const std::string &texture_prefix,
const std::string &blank_texture,
const std::string &direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset) :
Object(parent)
61 Blank = blank_texture;
65 Move(CenterX, voffset, CenterZ);
70 std::string name =
"Floor Indicator " +
ToString(elevator) + ext;
90 std::string tmpdirection = direction;
94 if (tmpdirection ==
"front" || tmpdirection ==
"back")
96 if (tmpdirection ==
"front")
101 sbs->
AddWallMain(wall,
"Floor Indicator", texture, 0, -width / 2, 0, width / 2, 0, height, height, 0, 0, 1, 1,
false);
103 else if (tmpdirection ==
"left" || tmpdirection ==
"right")
105 if (tmpdirection ==
"left")
106 sbs->
DrawWalls(
true,
false,
false,
false,
false,
false);
108 sbs->
DrawWalls(
false,
true,
false,
false,
false,
false);
110 sbs->
AddWallMain(wall,
"Floor Indicator", texture, 0, 0, width / 2, 0, -width / 2, height, height, 0, 0, 1, 1,
false);
138 if (type ==
"ElevatorCar")
140 else if (type ==
"Floor")
162 if (blank ==
true &&
Blank !=
"")
184 texture.insert(0,
Prefix);
std::string GetFloorDisplay()
ElevatorCar * GetCar(int number)
FloorIndicator * indicator
Timer(const std::string &name, FloorIndicator *parent)
MeshObject * FloorIndicatorMesh
FloorIndicator(Object *parent, int index, int elevator, int car, const std::string &texture_prefix, const std::string &blank_texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real altitude)
void Update(bool blank=false)
bool ChangeTexture(const std::string &texture, bool matcheck=true)
Wall * CreateWallObject(const std::string &name)
void SetName(const std::string &name)
virtual void Move(const Vector3 &vector, Real speed=1.0)
void SetValues(const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
void EnableLoop(bool value)
const std::string & GetType()
Elevator * GetElevator(int number)
Real GetConfigFloat(const std::string &key, Real default_value)
bool AddWallMain(Wall *wallobject, const std::string &name, const std::string &texture, Real thickness, Real x1, Real z1, Real x2, Real z2, Real height_in1, Real height_in2, Real altitude1, Real altitude2, Real tw, Real th, bool autosize)
void ResetWalls(bool ToDefaults=false)
Floor * GetFloor(int number)
TextureManager * GetTextureManager()
void DrawWalls(bool MainN, bool MainP, bool SideN, bool SideP, bool Top, bool Bottom)
void EnableLighting(const std::string &material_name, bool value)
void Start(int milliseconds=-1, bool oneshot=false)
void SetCase(std::string &string, bool uppercase)
std::string ToString(int number)
#define SBS_PROFILE(name)