Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
8e82d4dd
Commit
8e82d4dd
authored
Apr 16, 2014
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD] added example image to META of template modules.
parent
f474a558
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
src/modules/template/WMTemplate.cpp
src/modules/template/WMTemplate.cpp
+1
-1
src/modules/template/resources/META
src/modules/template/resources/META
+3
-0
src/modules/template/resources/amazingTexture.png
src/modules/template/resources/amazingTexture.png
+0
-0
No files found.
src/modules/template/WMTemplate.cpp
View file @
8e82d4dd
...
...
@@ -764,7 +764,7 @@ void WMTemplate::moduleMain()
// Let us utilize the META file in the resources directory. This file contains several information about a module and
// can also contain custom values. Here, we query the "goodbye" value:
std
::
string
bye
=
getMetaInformation
()
->
query
<
std
::
string
>
(
"common/goodbye"
,
// the absolute path
"common/goodbye"
,
// the absolute path
"have a nice day"
// a default if the element does not exist or cannot be returned as std::string.
);
infoLog
()
<<
bye
;
...
...
src/modules/template/resources/META
View file @
8e82d4dd
...
...
@@ -191,6 +191,9 @@
{
// how to say goodbye ...
goodbye = "Auf Wiedersehen!"; // in german
// and a useful texture we want to use in some modules. We will load this using WGEImage.
amazingTexture = "amazingTexture.png";
};
///////////////////////////////////////////////////////////////////////////////
...
...
src/modules/template/resources/amazingTexture.png
0 → 100644
View file @
8e82d4dd
60 KB
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