mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +00:00
Easier way to reference the program website in commands
This commit is contained in:
parent
e624b391c2
commit
fa204baf42
10
data/gui.xml
10
data/gui.xml
@ -390,20 +390,20 @@
|
|||||||
<separator />
|
<separator />
|
||||||
<item command="Launch" text="Quick &Reference">
|
<item command="Launch" text="Quick &Reference">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
<param name="path" value="http://aseprite.org/quickref/" />
|
<param name="path" value="/quickref/" />
|
||||||
</item>
|
</item>
|
||||||
<item command="Launch" text="Documentation">
|
<item command="Launch" text="Documentation">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
<param name="path" value="http://aseprite.org/docs/" />
|
<param name="path" value="/docs/" />
|
||||||
</item>
|
</item>
|
||||||
<item command="Launch" text="Tutorial">
|
<item command="Launch" text="Tutorial">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
<param name="path" value="http://aseprite.org/tutorial/" />
|
<param name="path" value="/tutorial/" />
|
||||||
</item>
|
</item>
|
||||||
<separator />
|
<separator />
|
||||||
<item command="Launch" text="Release Notes">
|
<item command="Launch" text="Release Notes">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
<param name="path" value="http://aseprite.org/release-notes/" />
|
<param name="path" value="/release-notes/" />
|
||||||
</item>
|
</item>
|
||||||
<item command="Launch" text="Twitter">
|
<item command="Launch" text="Twitter">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
@ -412,7 +412,7 @@
|
|||||||
<separator />
|
<separator />
|
||||||
<item command="Launch" text="&Donate">
|
<item command="Launch" text="&Donate">
|
||||||
<param name="type" value="url" />
|
<param name="type" value="url" />
|
||||||
<param name="path" value="http://aseprite.org/donate/" />
|
<param name="path" value="/donate/" />
|
||||||
</item>
|
</item>
|
||||||
<item command="About" text="&About" />
|
<item command="About" text="&About" />
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -63,6 +63,10 @@ void LaunchCommand::onLoadParams(Params* params)
|
|||||||
m_type = Url;
|
m_type = Url;
|
||||||
|
|
||||||
m_path = params->get("path");
|
m_path = params->get("path");
|
||||||
|
|
||||||
|
if (m_type == Url && !m_path.empty() && m_path[0] == '/') {
|
||||||
|
m_path = WEBSITE + m_path.substr(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LaunchCommand::onExecute(Context* context)
|
void LaunchCommand::onExecute(Context* context)
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
// General information
|
// General information
|
||||||
#define PACKAGE "Aseprite"
|
#define PACKAGE "Aseprite"
|
||||||
#define VERSION "1.0.0-dev"
|
#define VERSION "1.0.0-dev"
|
||||||
#define WEBSITE "http://aseprite.org/"
|
#define WEBSITE "http://www.aseprite.org/"
|
||||||
#define WEBSITE_DOWNLOAD WEBSITE "download/"
|
#define WEBSITE_DOWNLOAD WEBSITE "download/"
|
||||||
#define WEBSITE_CONTRIBUTORS WEBSITE "contributors/"
|
#define WEBSITE_CONTRIBUTORS WEBSITE "contributors/"
|
||||||
#define COPYRIGHT "Copyright (C) 2001-2014 David Capello"
|
#define COPYRIGHT "Copyright (C) 2001-2014 David Capello"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user