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
06f23162
Commit
06f23162
authored
Aug 09, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added total number of cards to random pack panel
parent
d5819493
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
41 additions
and
18 deletions
+41
-18
data/chs.mse-locale/locale
data/chs.mse-locale/locale
+2
-1
data/de.mse-locale/locale
data/de.mse-locale/locale
+2
-1
data/en.mse-locale/locale
data/en.mse-locale/locale
+1
-1
data/es.mse-locale/locale
data/es.mse-locale/locale
+2
-1
data/fr.mse-locale/locale
data/fr.mse-locale/locale
+2
-1
data/it.mse-locale/locale
data/it.mse-locale/locale
+3
-2
data/jp.mse-locale/locale
data/jp.mse-locale/locale
+2
-1
data/magic.mse-game/script
data/magic.mse-game/script
+1
-0
src/cli/cli_main.cpp
src/cli/cli_main.cpp
+1
-1
src/gui/set/random_pack_panel.cpp
src/gui/set/random_pack_panel.cpp
+23
-7
src/resource/common/expected_locale_keys
src/resource/common/expected_locale_keys
+2
-2
No files found.
data/chs.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
totals
:
Totals
#
_ADD
pack
totals
:
Totals
#
_ADD
seed
:
Seed
#
_ADD
seed
:
Seed
#
_ADD
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
全部文件
all
files
全部文件
...
@@ -468,7 +469,7 @@ label:
...
@@ -468,7 +469,7 @@ label:
filename
format
:
格式
:
filename
format
:
格式
:
filename
conflicts
:
处理重复文件名
:
filename
conflicts
:
处理重复文件名
:
export
filenames
:
文件名
export
filenames
:
文件名
cards
to
export
:
导出卡牌
#
_DEL
cards
to
export
:
导出卡牌
filename
is
ignored
:
(忽略文件名)
filename
is
ignored
:
(忽略文件名)
#
apprentice
export
#
apprentice
export
...
...
data/de.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
totals
:
Totals
#
_ADD
pack
totals
:
Totals
#
_ADD
seed
:
Seed
#
_ADD
seed
:
Seed
#
_ADD
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
Alle
Dateien
all
files
Alle
Dateien
...
@@ -468,7 +469,7 @@ label:
...
@@ -468,7 +469,7 @@ label:
filename
format
:
&
Format
:
filename
format
:
&
Format
:
filename
conflicts
:
&
Doppelte
Dateinamen
:
filename
conflicts
:
&
Doppelte
Dateinamen
:
export
filenames
:
Dateinamen
export
filenames
:
Dateinamen
cards
to
export
:
Exportierte
Karten
#
_DEL
cards
to
export
:
Exportierte
Karten
filename
is
ignored
:
(
Dateiname
wird
ignoriert
)
filename
is
ignored
:
(
Dateiname
wird
ignoriert
)
#
apprentice
export
#
apprentice
export
...
...
data/en.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
pack
selection
:
Pack
selection
pack
selection
:
Pack
selection
pack
totals
:
Totals
pack
totals
:
Totals
seed
:
Seed
seed
:
Seed
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
All
files
all
files
All
files
...
@@ -468,7 +469,6 @@ label:
...
@@ -468,7 +469,6 @@ label:
filename
format
:
&
Format
:
filename
format
:
&
Format
:
filename
conflicts
:
&
Handle
duplicating
filenames
:
filename
conflicts
:
&
Handle
duplicating
filenames
:
export
filenames
:
Filenames
export
filenames
:
Filenames
cards
to
export
:
Cards
to
export
filename
is
ignored
:
(
filename
is
ignored
)
filename
is
ignored
:
(
filename
is
ignored
)
#
apprentice
export
#
apprentice
export
...
...
data/es.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
totals
:
Totals
#
_ADD
pack
totals
:
Totals
#
_ADD
seed
:
Seed
#
_ADD
seed
:
Seed
#
_ADD
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
Todos
los
archivos
all
files
Todos
los
archivos
...
@@ -468,7 +469,7 @@ label:
...
@@ -468,7 +469,7 @@ label:
filename
format
:
&
Formato
:
filename
format
:
&
Formato
:
filename
conflicts
:
&
Soportar
duplicado
de
nombres
de
archivos
:
filename
conflicts
:
&
Soportar
duplicado
de
nombres
de
archivos
:
export
filenames
:
Nombres
de
archivo
export
filenames
:
Nombres
de
archivo
cards
to
export
:
Cartas
a
exportar
#
_DEL
cards
to
export
:
Cartas
a
exportar
filename
is
ignored
:
(
filename
is
ignored
)
filename
is
ignored
:
(
filename
is
ignored
)
#
apprentice
export
#
apprentice
export
...
...
data/fr.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
#_ADD pack selection: Pack selection
#_ADD pack selection: Pack selection
#_ADD pack totals: Totals
#_ADD pack totals: Totals
#_ADD seed: Seed
#_ADD seed: Seed
#_ADD total cards: Total
# Open dialogs
# Open dialogs
all files All files
all files All files
...
@@ -468,7 +469,7 @@ label:
...
@@ -468,7 +469,7 @@ label:
filename format: &Format:
filename format: &Format:
filename conflicts: &Handle duplicating filenames:
filename conflicts: &Handle duplicating filenames:
export filenames: Filenames
export filenames: Filenames
cards to export: Cards to export
#_DEL
cards to export: Cards to export
filename is ignored: (filename is ignored)
filename is ignored: (filename is ignored)
# apprentice export
# apprentice export
...
...
data/it.mse-locale/locale
View file @
06f23162
#
_DEL
mse
version
:
0.3.7
#
_DEL
#
_DEL
#
_DEL
mse
version
:
0.3.7
#
_ADD
mse
version
:
0.3.7
#
_ADD
mse
version
:
0.3.7
installer
group
:
translations
/
Italiano
installer
group
:
translations
/
Italiano
full
name
:
Italiano
full
name
:
Italiano
...
@@ -424,6 +424,7 @@ label:
...
@@ -424,6 +424,7 @@ label:
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
totals
:
Totals
#
_ADD
pack
totals
:
Totals
#
_ADD
seed
:
Seed
#
_ADD
seed
:
Seed
#
_ADD
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
Tutti
i
file
all
files
Tutti
i
file
...
@@ -469,7 +470,7 @@ label:
...
@@ -469,7 +470,7 @@ label:
filename format: &Formato:
filename format: &Formato:
filename conflicts: &Handle duplicating filenames:
filename conflicts: &Handle duplicating filenames:
export filenames: Filenames
export filenames: Filenames
cards to export: Carte da esportare
#_DEL
cards to export: Carte da esportare
filename is ignored: (il filename è ignorato)
filename is ignored: (il filename è ignorato)
# apprentice export
# apprentice export
...
...
data/jp.mse-locale/locale
View file @
06f23162
...
@@ -423,6 +423,7 @@ label:
...
@@ -423,6 +423,7 @@ label:
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
selection
:
Pack
selection
#
_ADD
pack
totals
:
Totals
#
_ADD
pack
totals
:
Totals
#
_ADD
seed
:
Seed
#
_ADD
seed
:
Seed
#
_ADD
total
cards
:
Total
#
Open
dialogs
#
Open
dialogs
all
files
全てのファイル
all
files
全てのファイル
...
@@ -468,7 +469,7 @@ label:
...
@@ -468,7 +469,7 @@ label:
filename
format
:
&
フォーマット:
filename
format
:
&
フォーマット:
filename
conflicts
:
&
取っ手を複写することのファイル名:
filename
conflicts
:
&
取っ手を複写することのファイル名:
export
filenames
:
ファイル名
export
filenames
:
ファイル名
cards
to
export
:
エクスポートするカード
#
_DEL
cards
to
export
:
エクスポートするカード
filename
is
ignored
:
(
ファイル名は無視されます
)
filename
is
ignored
:
(
ファイル名は無視されます
)
#
apprentice
export
#
apprentice
export
...
...
data/magic.mse-game/script
View file @
06f23162
...
@@ -199,6 +199,7 @@ hybrid_cost_sort := {
...
@@ -199,6 +199,7 @@ hybrid_cost_sort := {
else if colors = "UG" then "GJ"
else if colors = "UG" then "GJ"
else "GK"
else "GK"
}
}
# A code for the color of the card
color_of_card := {
color_of_card := {
card_color := card.card_color
card_color := card.card_color
casting_cost := card.casting_cost
casting_cost := card.casting_cost
...
...
src/cli/cli_main.cpp
View file @
06f23162
...
@@ -150,7 +150,7 @@ void CLISetInterface::handleCommand(const String& command) {
...
@@ -150,7 +150,7 @@ void CLISetInterface::handleCommand(const String& command) {
if
(
arg
.
empty
())
{
if
(
arg
.
empty
())
{
cli
.
showError
(
_
(
"Give a shell command to execute."
));
cli
.
showError
(
_
(
"Give a shell command to execute."
));
}
else
{
}
else
{
#if UNICODE
#if
def
UNICODE
#ifdef __WXMSW__
#ifdef __WXMSW__
_wsystem
(
arg
.
c_str
());
// TODO: is this function available on other platforms?
_wsystem
(
arg
.
c_str
());
// TODO: is this function available on other platforms?
#else
#else
...
...
src/gui/set/random_pack_panel.cpp
View file @
06f23162
...
@@ -87,6 +87,7 @@ class PackTotalsPanel : public wxPanel {
...
@@ -87,6 +87,7 @@ class PackTotalsPanel : public wxPanel {
GameP
game
;
GameP
game
;
void
onPaint
(
wxPaintEvent
&
);
void
onPaint
(
wxPaintEvent
&
);
void
draw
(
DC
&
dc
);
void
draw
(
DC
&
dc
);
void
drawItem
(
DC
&
dc
,
int
&
y
,
const
String
&
name
,
int
value
);
map
<
String
,
int
>
amounts
;
map
<
String
,
int
>
amounts
;
};
};
...
@@ -104,15 +105,30 @@ void PackTotalsPanel::draw(DC& dc) {
...
@@ -104,15 +105,30 @@ void PackTotalsPanel::draw(DC& dc) {
dc
.
SetTextForeground
(
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_BTNTEXT
));
dc
.
SetTextForeground
(
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_BTNTEXT
));
dc
.
SetFont
(
*
wxNORMAL_FONT
);
dc
.
SetFont
(
*
wxNORMAL_FONT
);
int
y
=
0
;
int
y
=
0
;
int
total
=
0
;
FOR_EACH
(
item
,
game
->
pack_items
)
{
FOR_EACH
(
item
,
game
->
pack_items
)
{
int
w
,
h
;
int
value
=
amounts
[
item
->
name
];
String
name
=
capitalize
(
item
->
name
);
drawItem
(
dc
,
y
,
item
->
name
,
value
);
String
amount
;
amount
<<
amounts
[
item
->
name
];
total
+=
value
;
dc
.
GetTextExtent
(
amount
,
&
w
,
&
h
);
dc
.
DrawText
(
name
,
0
,
y
);
dc
.
DrawText
(
amount
,
size
.
x
-
w
,
y
);
//align right
y
+=
h
+
10
;
}
}
// draw total
dc
.
SetPen
(
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_3DSHADOW
));
dc
.
DrawLine
(
0
,
y
-
4
,
size
.
x
,
y
-
4
);
dc
.
SetPen
(
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_3DHIGHLIGHT
));
dc
.
DrawLine
(
0
,
y
-
3
,
size
.
x
,
y
-
3
);
y
+=
6
;
drawItem
(
dc
,
y
,
_LABEL_
(
"total cards"
),
total
);
}
void
PackTotalsPanel
::
drawItem
(
DC
&
dc
,
int
&
y
,
const
String
&
name
,
int
value
)
{
wxSize
size
=
dc
.
GetSize
();
int
w
,
h
;
String
cap_name
=
capitalize
(
name
);
String
amount
;
amount
<<
value
;
dc
.
GetTextExtent
(
amount
,
&
w
,
&
h
);
dc
.
DrawText
(
cap_name
,
0
,
y
);
dc
.
DrawText
(
amount
,
size
.
x
-
w
,
y
);
//align right
y
+=
h
+
10
;
}
}
void
PackTotalsPanel
::
setGame
(
const
GameP
&
game
)
{
void
PackTotalsPanel
::
setGame
(
const
GameP
&
game
)
{
...
...
src/resource/common/expected_locale_keys
View file @
06f23162
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
This
file
contains
the
keys
expected
to
be
in
MSE
locales
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
It
was
automatically
generated
by
tools
/
locale
/
locale
.
pl
#
Generated
on
Fri
Aug
8
23
:
23
:
10
2008
#
Generated
on
Sat
Aug
9
19
:
00
:
54
2008
action
:
action
:
add
control
point
:
0
add
control
point
:
0
...
@@ -273,7 +273,6 @@ label:
...
@@ -273,7 +273,6 @@ label:
auto
replace
:
0
auto
replace
:
0
card
display
:
0
card
display
:
0
card
notes
:
0
card
notes
:
0
cards
to
export
:
0
check
at
startup
:
0
check
at
startup
:
0
checking
requires
internet
:
0
checking
requires
internet
:
0
columns
:
0
columns
:
0
...
@@ -332,6 +331,7 @@ label:
...
@@ -332,6 +331,7 @@ label:
style
type
:
0
style
type
:
0
stylesheet
not
found
:
1
stylesheet
not
found
:
1
styling
options
:
0
styling
options
:
0
total
cards
:
0
upgrade
package
:
0
upgrade
package
:
0
uses
:
0
uses
:
0
zoom
:
0
zoom
:
0
...
...
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