mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 17:48:46 -10:00
* API elements required for the Briefing * Resolve errors * Check if the mission is a Scramble mission * Add one missed flag check * Slight API naming adjustment * Address feedback * Address Feedback again * Differentiate var names
47 lines
978 B
C++
47 lines
978 B
C++
#pragma once
|
|
|
|
// Our Assert conflicts with the definitions inside libRocket
|
|
#pragma push_macro("Assert")
|
|
#undef Assert
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wshadow"
|
|
#endif
|
|
|
|
#include <Rocket/Core/Element.h>
|
|
#include <Rocket/Core/Geometry.h>
|
|
#include <Rocket/Core/Texture.h>
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif
|
|
|
|
#pragma pop_macro("Assert")
|
|
|
|
namespace scpui {
|
|
namespace elements {
|
|
|
|
using namespace Rocket::Core;
|
|
|
|
class ScrollingTextElement : public Rocket::Core::Element {
|
|
public:
|
|
ScrollingTextElement(const String& tag_in);
|
|
~ScrollingTextElement() override;
|
|
|
|
protected:
|
|
void OnAttributeChange(const AttributeNameList& changed_attributes) override;
|
|
|
|
void OnBeforeRender() override;
|
|
void OnAfterRender() override;
|
|
|
|
void OnChildAdd(Element* child) override;
|
|
void OnChildRemove(Element* child) override;
|
|
|
|
float _duration = 1.5f;
|
|
float _animation_start_time = -1.0f;
|
|
};
|
|
|
|
} // namespace elements
|
|
} // namespace scpui
|