Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
ImgGen
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
MyCard
ImgGen
Commits
ec60aea7
Commit
ec60aea7
authored
Mar 25, 2024
by
nanahira
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip image when data not exists
parent
cddcce09
Pipeline
#26024
failed with stages
in 2 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
DataManager.cs
DataManager.cs
+1
-9
ImageManager.cs
ImageManager.cs
+4
-0
No files found.
DataManager.cs
View file @
ec60aea7
...
@@ -53,14 +53,7 @@ namespace ImgGen
...
@@ -53,14 +53,7 @@ namespace ImgGen
else
else
{
{
Console
.
WriteLine
(
$"Card
{
code
}
not found!"
);
Console
.
WriteLine
(
$"Card
{
code
}
not found!"
);
Data
data
=
new
Data
return
null
;
{
code
=
code
,
name
=
"???"
,
text
=
"???"
};
return
data
;
}
}
}
public
static
string
FormatCardDesc
(
string
r
)
public
static
string
FormatCardDesc
(
string
r
)
...
@@ -91,4 +84,3 @@ namespace ImgGen
...
@@ -91,4 +84,3 @@ namespace ImgGen
}
}
}
}
}
}
ImageManager.cs
View file @
ec60aea7
...
@@ -149,6 +149,10 @@ namespace ImgGen
...
@@ -149,6 +149,10 @@ namespace ImgGen
public
Bitmap
GetImage
(
int
code
)
public
Bitmap
GetImage
(
int
code
)
{
{
Data
data
=
DataManager
.
GetData
(
code
);
Data
data
=
DataManager
.
GetData
(
code
);
if
(
data
==
null
)
{
return
null
;
}
return
DrawCard
(
data
);
return
DrawCard
(
data
);
}
}
...
...
nanahira
@nanahira
mentioned in commit
a844d1bb
·
Mar 25, 2024
mentioned in commit
a844d1bb
mentioned in commit a844d1bbbbfd2a2df55d6d2dee7d69ba5dc02afd
Toggle commit list
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