Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
List
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
xiaoye
mycard
Commits
b3cd2f1c
Commit
b3cd2f1c
authored
Aug 11, 2013
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printer
parent
2de3e0b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
graphics/system/deck_buttons.png
graphics/system/deck_buttons.png
+0
-0
lib/update.rb
lib/update.rb
+1
-1
lib/window_deck.rb
lib/window_deck.rb
+3
-3
No files found.
graphics/system/deck_buttons.png
View file @
b3cd2f1c
This diff was suppressed by a .gitattributes entry.
lib/update.rb
View file @
b3cd2f1c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
require
"fileutils"
require
"fileutils"
require_relative
'card'
require_relative
'card'
module
Update
module
Update
Version
=
'1.1.
5
'
Version
=
'1.1.
6
'
URL
=
"https://my-card.in/mycard/update.json?version=
#{
Version
}
"
URL
=
"https://my-card.in/mycard/update.json?version=
#{
Version
}
"
class
<<
self
class
<<
self
attr_reader
:thumbnails
,
:images
,
:status
attr_reader
:thumbnails
,
:images
,
:status
...
...
lib/window_deck.rb
View file @
b3cd2f1c
...
@@ -7,7 +7,7 @@ class Window_Deck < Window_Scrollable
...
@@ -7,7 +7,7 @@ class Window_Deck < Window_Scrollable
super
((
1024
-
@background
.
w
)
/
2
,
230
,
@background
.
w
,
@background
.
h
,
300
)
super
((
1024
-
@background
.
w
)
/
2
,
230
,
@background
.
w
,
@background
.
h
,
300
)
@items_button
=
Surface
.
load
(
"graphics/system/deck_buttons.png"
)
@items_button
=
Surface
.
load
(
"graphics/system/deck_buttons.png"
)
@items_buttons
=
{
edit:
"编辑"
,
delete:
"删除"
,
export:
"导出"
,
share:
"分享"
}
@items_buttons
=
{
edit:
"编辑"
,
delete:
"删除"
,
export:
"导出"
,
share:
"分享"
,
buy:
"打印"
}
button_y
=
@height
-
36
button_y
=
@height
-
36
@button
=
Surface
.
load
(
"graphics/system/button.png"
)
@button
=
Surface
.
load
(
"graphics/system/button.png"
)
...
@@ -129,7 +129,7 @@ class Window_Deck < Window_Scrollable
...
@@ -129,7 +129,7 @@ class Window_Deck < Window_Scrollable
when
:edit
when
:edit
Ygocore
.
run_ygocore
(
File
.
basename
(
@items
[
index
[
0
]],
".ydk"
))
Ygocore
.
run_ygocore
(
File
.
basename
(
@items
[
index
[
0
]],
".ydk"
))
refresh
refresh
when
:share
when
:share
,
:buy
card_usages
=
[]
card_usages
=
[]
side
=
false
side
=
false
last_id
=
nil
last_id
=
nil
...
@@ -164,7 +164,7 @@ class Window_Deck < Window_Scrollable
...
@@ -164,7 +164,7 @@ class Window_Deck < Window_Scrollable
result
<<
key
[(
c
>>
i
*
6
)
&
0x3F
]
result
<<
key
[(
c
>>
i
*
6
)
&
0x3F
]
end
end
end
end
Dialog
.
web
"https://my-card.in/decks/new?name=
#{
File
.
basename
(
@items
[
index
[
0
]],
".ydk"
)
}
&cards=
#{
result
}
#share"
Dialog
.
web
"https://my-card.in/decks/new
#{
'.pdf'
if
index
[
1
]
==
:buy
}
?name=
#{
File
.
basename
(
@items
[
index
[
0
]],
".ydk"
)
}
&cards=
#{
result
}
#share"
when
:delete
when
:delete
require_relative
'widget_msgbox'
require_relative
'widget_msgbox'
...
...
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