Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
915f015e
Commit
915f015e
authored
Jun 30, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed TextBackground, it never worked anyway
parent
2de5ea24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
src/data/field/text.cpp
src/data/field/text.cpp
+0
-9
src/data/field/text.hpp
src/data/field/text.hpp
+0
-11
No files found.
src/data/field/text.cpp
View file @
915f015e
...
...
@@ -81,12 +81,6 @@ void TextStyle::markDependencyMember(const String& name, const Dependency& dep)
}
}
IMPLEMENT_REFLECTION
(
TextBackground
)
{
REFLECT
(
image
);
REFLECT_N
(
"displacement_x"
,
displacement
.
width
);
REFLECT_N
(
"displacement_y"
,
displacement
.
height
);
}
template
<
typename
T
>
void
reflect_content
(
T
&
tag
,
const
TextStyle
&
ts
)
{}
template
<>
void
reflect_content
(
GetMember
&
tag
,
const
TextStyle
&
ts
)
{
REFLECT_N
(
"content_width"
,
ts
.
content_width
);
...
...
@@ -115,9 +109,6 @@ IMPLEMENT_REFLECTION(TextStyle) {
REFLECT
(
line_height_line
);
REFLECT_N
(
"mask"
,
mask_filename
);
REFLECT
(
direction
);
REFLECT
(
text_background
);
REFLECT
(
text_background_left
);
REFLECT
(
text_background_right
);
reflect_content
(
tag
,
*
this
);
}
...
...
src/data/field/text.hpp
View file @
915f015e
...
...
@@ -47,15 +47,6 @@ class TextField : public Field {
// ----------------------------------------------------------------------------- : TextStyle
/// Background behind text
class
TextBackground
:
public
IntrusivePtrBase
<
TextBackground
>
{
public:
ScriptableImage
image
;
///< background image, stretched to text size
RealSize
displacement
;
private:
DECLARE_REFLECTION
();
};
/// The Style for a TextField
class
TextStyle
:
public
Style
{
public:
...
...
@@ -78,8 +69,6 @@ class TextStyle : public Style {
String
mask_filename
;
///< Filename of the mask
ContourMask
mask
;
///< Mask to fit the text to (may be null)
Direction
direction
;
///< In what direction is text layed out?
TextBackgroundP
text_background
;
///< Image behind the text
TextBackgroundP
text_background_left
,
text_background_right
;
// information from text rendering
double
content_width
,
content_height
;
///< Size of the rendered text
int
content_lines
;
///< Number of rendered lines
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment