Commit f14a1998 authored by Corey Moyer's avatar Corey Moyer

Move all textures to common folder

parent e9a692f9
......@@ -49,18 +49,13 @@ $(BUILDDIR)/$(ADDON_NAME)/resources: $(BUILDDIR)/$(ADDON_NAME)/resources/skins \
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources
cp -R src/resources/* $(BUILDDIR)/$(ADDON_NAME)/resources
$(BUILDDIR)/$(ADDON_NAME)/resources/skins: $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/default \
$(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/icons
$(BUILDDIR)/$(ADDON_NAME)/resources/skins: $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default
cp -R skins/Default/* $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default
$(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/default:
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/default
cp textures/$(DISTRONAME)/*.{png,jpg} $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/default
$(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/icons:
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/icons
cp icons/*.png $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media/icons
$(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media:
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media
cp textures/$(DISTRONAME)/*.{png,jpg} $(BUILDDIR)/$(ADDON_NAME)/resources/skins/Default/media
$(BUILDDIR)/$(ADDON_NAME)/resources/language:
mkdir -p $(BUILDDIR)/$(ADDON_NAME)/resources/language
......
......@@ -84,8 +84,8 @@
<description lang="zh">使用此插件管理你的 @DISTRONAME@ 系统的底层操作系统。它使你可以在无需深入了解的情况下管理整个系统。[CR][CR]在这里,你可以修改网络设置、键盘布局、语言以及启用/禁用 Samba 和 SSH 等远程访问功能。</description>
<platform>all</platform>
<assets>
<icon>resources/skins/Default/media/default/icon.png</icon>
<fanart>resources/skins/Default/media/default/fanart.png</fanart>
<icon>resources/skins/Default/media/icon.png</icon>
<fanart>resources/skins/Default/media/fanart.png</fanart>
</assets>
</extension>
</addon>
......@@ -19,7 +19,7 @@
<top>5</top>
<width>600</width>
<height>174</height>
<texture border="15">default/dialog-bg-solid.png</texture>
<texture border="15">dialog-bg-solid.png</texture>
</control>
<control type="group">
<left>17</left>
......
......@@ -10,7 +10,7 @@ import xbmcaddon
__scriptid__ = '@ADDONNAME@'
__addon__ = xbmcaddon.Addon(id=__scriptid__)
__cwd__ = __addon__.getAddonInfo('path')
__media__ = '%s/resources/skins/Default/media/' % __cwd__
__media__ = '%s/resources/skins/Default/media' % __cwd__
_ = __addon__.getLocalizedString
try:
......@@ -19,4 +19,4 @@ try:
sock.send('openConfigurationWindow')
sock.close()
except Exception, e:
xbmc.executebuiltin('Notification("@DISTRONAME@", "%s", 5000, "%sdefault/icon.png")' % (_(32390).encode('utf-8'), __media__))
xbmc.executebuiltin('Notification("@DISTRONAME@", "%s", 5000, "%s/icon.png")' % (_(32390).encode('utf-8'), __media__))
......@@ -116,7 +116,7 @@ def dbg_log(source, text, level=4):
def notify(title, message, icon='icon'):
try:
dbg_log('oe::notify', 'enter_function', 0)
msg = 'Notification("%s", "%s", 5000, "%s/default/%s.png")' % (
msg = 'Notification("%s", "%s", 5000, "%s/%s.png")' % (
title,
message[0:64],
__media__,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment