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
a6fbf7cf
Commit
a6fbf7cf
authored
Sep 20, 2007
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordered the magic statistics panel
parent
7e0eb5a8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
46 deletions
+44
-46
data/magic.mse-game/game
data/magic.mse-game/game
+40
-45
data/magic.mse-game/stats/card_type.png
data/magic.mse-game/stats/card_type.png
+0
-0
data/magic.mse-game/stats/creature_type.png
data/magic.mse-game/stats/creature_type.png
+0
-0
src/data/field.cpp
src/data/field.cpp
+2
-0
src/data/field.hpp
src/data/field.hpp
+1
-0
src/data/statistics.cpp
src/data/statistics.cpp
+1
-1
No files found.
data/magic.mse-game/game
View file @
a6fbf7cf
...
@@ -343,13 +343,13 @@ init script:
...
@@ -343,13 +343,13 @@ init script:
replace: {"<sym>" + mana_filter_t() + "</sym>"} ) +
replace: {"<sym>" + mana_filter_t() + "</sym>"} ) +
# step 7 : italic reminder text
# step 7 : italic reminder text
replace_rule(
replace_rule(
match: "[(]
[^)\n]
*[)]?",
match: "[(]
([^)\n]|[(][^)\n]*[)])
*[)]?",
in_context: "(^|[[:space:]])<match>|<atom-keyword><match></",
in_context: "(^|[[:space:]])<match>|<atom-keyword><match></",
replace: "<i-auto>&</i-auto>") +
replace: "<i-auto>&</i-auto>") +
# step 8 : automatic capitalization
# step 8 : automatic capitalization
replace_rule(
replace_rule(
match: "[a-z]",
match: "[a-z]",
in_context: "[(](<param-[a-z]*>)?<match>|[ ]*: <param-cost><match>|—<match>| — <match>",
in_context: "[(](<param-[a-z]*>)?<match>
[^)]
|[ ]*: <param-cost><match>|—<match>| — <match>",
replace: to_upper) +
replace: to_upper) +
curly_quotes
curly_quotes
...
@@ -709,6 +709,7 @@ card field:
...
@@ -709,6 +709,7 @@ card field:
type: text
type: text
name: casting cost
name: casting cost
icon: stats/casting_cost.png
icon: stats/casting_cost.png
position hint: 1
script: mana_filter(value)
script: mana_filter(value)
card list visible: true
card list visible: true
card list column: 2
card list column: 2
...
@@ -719,6 +720,7 @@ card field:
...
@@ -719,6 +720,7 @@ card field:
card field:
card field:
type: choice
type: choice
name: card symbol
name: card symbol
position hint: 10
icon: stats/card_symbol.png
icon: stats/card_symbol.png
choice: none
choice: none
choice: tombstone
choice: tombstone
...
@@ -747,13 +749,15 @@ card field:
...
@@ -747,13 +749,15 @@ card field:
card field:
card field:
type: text
type: text
name: super type
name: super type
icon: stats/creature_type.png
icon: stats/card_type.png
position hint: 30
editable: false
editable: false
script: super_type_filter(value)
script: super_type_filter(value)
card field:
card field:
type: text
type: text
name: sub type
name: sub type
icon: stats/creature_type.png
icon: stats/creature_type.png
position hint: 31
script: sub_type_filter(value, type:card.super_type)
script: sub_type_filter(value, type:card.super_type)
editable: false
editable: false
card field:
card field:
...
@@ -777,6 +781,7 @@ card field:
...
@@ -777,6 +781,7 @@ card field:
type: choice
type: choice
name: rarity
name: rarity
icon: stats/rarity.png
icon: stats/rarity.png
position hint: 100
choice: basic land
choice: basic land
choice: common
choice: common
choice: uncommon
choice: uncommon
...
@@ -817,6 +822,7 @@ card field:
...
@@ -817,6 +822,7 @@ card field:
type: choice
type: choice
name: watermark
name: watermark
icon: stats/watermark.png
icon: stats/watermark.png
position hint: 200
include file: magic-watermarks.mse-include/watermark-names
include file: magic-watermarks.mse-include/watermark-names
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, or a guild symbol
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, or a guild symbol
...
@@ -825,6 +831,7 @@ card field:
...
@@ -825,6 +831,7 @@ card field:
type: text
type: text
name: loyalty
name: loyalty
icon: stats/toughness.png
icon: stats/toughness.png
position hint: 59
card field:
card field:
type: text
type: text
name: loyalty cost 1
name: loyalty cost 1
...
@@ -842,10 +849,12 @@ card field:
...
@@ -842,10 +849,12 @@ card field:
type: text
type: text
name: power
name: power
icon: stats/power.png
icon: stats/power.png
show statistics: false
script: type_over_pt(value)
script: type_over_pt(value)
card field:
card field:
type: text
type: text
name: toughness
name: toughness
show statistics: false
icon: stats/toughness.png
icon: stats/toughness.png
card field:
card field:
type: text
type: text
...
@@ -886,6 +895,7 @@ card field:
...
@@ -886,6 +895,7 @@ card field:
type: text
type: text
name: illustrator
name: illustrator
icon: stats/illustrator.png
icon: stats/illustrator.png
position hint: 210
default: set.artist
default: set.artist
description: Illustrator of this card, the default value can be changed on the 'set info' tab
description: Illustrator of this card, the default value can be changed on the 'set info' tab
card field:
card field:
...
@@ -1042,6 +1052,7 @@ card field:
...
@@ -1042,6 +1052,7 @@ card field:
name: watermark 2
name: watermark 2
include file: magic-watermarks.mse-include/watermark-names
include file: magic-watermarks.mse-include/watermark-names
icon: stats/watermark.png
icon: stats/watermark.png
show statistics: false
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol
card field:
card field:
type: text
type: text
...
@@ -1123,7 +1134,7 @@ card list color script:
...
@@ -1123,7 +1134,7 @@ card list color script:
statistics dimension:
statistics dimension:
name: card color
name: card color
position hint:
-1
position hint:
0
script: primary_card_color(card.card_color)
script: primary_card_color(card.card_color)
icon: stats/card_color.png
icon: stats/card_color.png
colors:
colors:
...
@@ -1149,19 +1160,36 @@ statistics dimension:
...
@@ -1149,19 +1160,36 @@ statistics dimension:
group: hybrid
group: hybrid
statistics dimension:
statistics dimension:
position hint: 2
name: converted mana cost
name: converted mana cost
script: cmc(card.casting_cost)
script: cmc(card.casting_cost)
numeric: true
numeric: true
icon: stats/casting_cost.png
icon: stats/casting_cost.png
statistics dimension:
statistics dimension:
position hint: 3
name: colored mana cost
name: colored mana cost
script: colored_mana(card.casting_cost)
script: colored_mana(card.casting_cost)
numeric: true
numeric: true
icon: stats/colored_casting_cost.png
icon: stats/colored_casting_cost.png
statistics dimension:
position hint: 50
name: power
script: card.power
numeric: true
icon: stats/power.png
statistics dimension:
position hint: 51
name: toughness
script: card.toughness
numeric: true
icon: stats/toughness.png
statistics dimension:
statistics dimension:
name: keywords
name: keywords
position hint: 1000
script: keyword_usage(unique:true)
script: keyword_usage(unique:true)
show empty: false
show empty: false
split list: true
split list: true
...
@@ -1169,6 +1197,7 @@ statistics dimension:
...
@@ -1169,6 +1197,7 @@ statistics dimension:
statistics dimension:
statistics dimension:
name: race
name: race
position hint: 32
icon: stats/creature_type.png
icon: stats/creature_type.png
description: Race of creatures and tribal cards
description: Race of creatures and tribal cards
script:
script:
...
@@ -1177,6 +1206,7 @@ statistics dimension:
...
@@ -1177,6 +1206,7 @@ statistics dimension:
show empty: false
show empty: false
statistics dimension:
statistics dimension:
name: creature class
name: creature class
position hint: 33
icon: stats/creature_type.png
icon: stats/creature_type.png
description: Class of creature cards
description: Class of creature cards
script:
script:
...
@@ -1185,35 +1215,17 @@ statistics dimension:
...
@@ -1185,35 +1215,17 @@ statistics dimension:
show empty: false
show empty: false
split list: true
split list: true
#statistics dimension:
# name: word count
# type: word count
# display: list
statistics category:
statistics category:
name: color / rarity
name: color / rarity
position hint: 101
type: stack
type: stack
icon: stats/color_rarity.png
icon: stats/color_rarity.png
dimension: card color
dimension: card color
dimension: rarity
dimension: rarity
#statistics category:
# name: power / toughness
# type: scatter
# icon: stats/pt.png
# dimension: power
# dimension: toughness
#statistics category:
# name: power / toughness / color
# type: scatter pie
# icon: stats/pt.png
# dimension: power
# dimension: toughness
# dimension: card color
statistics category:
statistics category:
name: power / toughness
name: power / toughness
position hint: 52
type: scatter pie
type: scatter pie
icon: stats/pt.png
icon: stats/pt.png
dimension: power
dimension: power
...
@@ -1228,6 +1240,7 @@ statistics category:
...
@@ -1228,6 +1240,7 @@ statistics category:
statistics category:
statistics category:
name: color / cost
name: color / cost
position hint: 4
type: scatter pie
type: scatter pie
icon: stats/color_cost.png
icon: stats/color_cost.png
dimension: card color
dimension: card color
...
@@ -1236,6 +1249,7 @@ statistics category:
...
@@ -1236,6 +1249,7 @@ statistics category:
statistics category:
statistics category:
name: color / colored cost
name: color / colored cost
position hint: 5
icon: stats/color_colored_cost.png
icon: stats/color_colored_cost.png
type: scatter
type: scatter
dimension: card color
dimension: card color
...
@@ -1243,6 +1257,7 @@ statistics category:
...
@@ -1243,6 +1257,7 @@ statistics category:
statistics category:
statistics category:
name: cost / colored cost
name: cost / colored cost
position hint: 6
icon: stats/cost_colored_cost.png
icon: stats/cost_colored_cost.png
type: scatter pie
type: scatter pie
dimension: converted mana cost
dimension: converted mana cost
...
@@ -1251,33 +1266,13 @@ statistics category:
...
@@ -1251,33 +1266,13 @@ statistics category:
statistics category:
statistics category:
name: creature race / class
name: creature race / class
position hint: 34
icon: stats/creature_type.png
icon: stats/creature_type.png
type: scatter pie
type: scatter pie
dimension: race
dimension: race
dimension: creature class
dimension: creature class
dimension: card color
dimension: card color
#statistics field:
# name: creature type
# data 1:
# if card.super_type == "Creature" or card.super_type == "Legendary Creature" then
# split(around:" ", input: card.sub_type)
#statistics field:
# name: converted mana cost
# graph style: bar
# data 1:
# card.casting_cost
# # TODO
#statistics field:
# name: color / rarity
# graph style: cross
# data 1: card.card_color
# data 2: card.rarity
# The following (until keywords) doesn't do anything yet
############################################################## Word lists
############################################################## Word lists
...
...
data/magic.mse-game/stats/card_type.png
0 → 100644
View file @
a6fbf7cf
400 Bytes
data/magic.mse-game/stats/creature_type.png
View replaced file @
7e0eb5a8
View file @
a6fbf7cf
383 Bytes
|
W:
|
H:
416 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/data/field.cpp
View file @
a6fbf7cf
...
@@ -26,6 +26,7 @@ Field::Field()
...
@@ -26,6 +26,7 @@ Field::Field()
,
editable
(
true
)
,
editable
(
true
)
,
save_value
(
true
)
,
save_value
(
true
)
,
show_statistics
(
true
)
,
show_statistics
(
true
)
,
position_hint
(
0
)
,
identifying
(
false
)
,
identifying
(
false
)
,
card_list_column
(
100
)
,
card_list_column
(
100
)
,
card_list_width
(
100
)
,
card_list_width
(
100
)
...
@@ -53,6 +54,7 @@ IMPLEMENT_REFLECTION(Field) {
...
@@ -53,6 +54,7 @@ IMPLEMENT_REFLECTION(Field) {
REFLECT
(
editable
);
REFLECT
(
editable
);
REFLECT
(
save_value
);
REFLECT
(
save_value
);
REFLECT
(
show_statistics
);
REFLECT
(
show_statistics
);
REFLECT
(
position_hint
);
REFLECT
(
identifying
);
REFLECT
(
identifying
);
REFLECT
(
card_list_column
);
REFLECT
(
card_list_column
);
REFLECT
(
card_list_width
);
REFLECT
(
card_list_width
);
...
...
src/data/field.hpp
View file @
a6fbf7cf
...
@@ -47,6 +47,7 @@ class Field : public IntrusivePtrVirtualBase {
...
@@ -47,6 +47,7 @@ class Field : public IntrusivePtrVirtualBase {
bool
editable
;
///< Can values of this field be edited?
bool
editable
;
///< Can values of this field be edited?
bool
save_value
;
///< Should values of this field be written to files? Can be false for script generated fields.
bool
save_value
;
///< Should values of this field be written to files? Can be false for script generated fields.
bool
show_statistics
;
///< Should this field appear as a group by choice in the statistics panel?
bool
show_statistics
;
///< Should this field appear as a group by choice in the statistics panel?
int
position_hint
;
///< Position in the statistics list
bool
identifying
;
///< Does this field give Card::identification()?
bool
identifying
;
///< Does this field give Card::identification()?
int
card_list_column
;
///< What column to use in the card list?
int
card_list_column
;
///< What column to use in the card list?
UInt
card_list_width
;
///< Width of the card list column (pixels).
UInt
card_list_width
;
///< Width of the card list column (pixels).
...
...
src/data/statistics.cpp
View file @
a6fbf7cf
...
@@ -30,7 +30,7 @@ StatsDimension::StatsDimension(const Field& field)
...
@@ -30,7 +30,7 @@ StatsDimension::StatsDimension(const Field& field)
:
automatic
(
true
)
:
automatic
(
true
)
,
name
(
field
.
name
)
,
name
(
field
.
name
)
,
description
(
field
.
description
)
,
description
(
field
.
description
)
,
position_hint
(
0
)
,
position_hint
(
field
.
position_hint
)
,
icon_filename
(
field
.
icon_filename
)
,
icon_filename
(
field
.
icon_filename
)
,
numeric
(
false
)
,
numeric
(
false
)
,
show_empty
(
false
)
,
show_empty
(
false
)
...
...
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