Details | Compare with Previous | View Log
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 2 | Seerah-7 | @echo off |
2 | Seerah-7 | echo This script will now prepare the files for using LMP_MediaStash_MyStash |
|
3 | Seerah-7 | ||
4 | Seerah-7 | if exist ..\LMP_MediaStash_MyStash goto has_folder |
|
5 | Seerah-7 | echo Creating the folders... |
|
6 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash |
|
7 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash\background |
|
8 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash\border |
|
9 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash\font |
|
10 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash\sound |
|
11 | Seerah-7 | mkdir ..\LMP_MediaStash_MyStash\statusbar |
|
12 | Seerah-7 | echo You can now put your media files into the subfolders found at -User-\Documents\Elder |
|
13 | Seerah-7 | Scrolls Online\live\AddOns\LMP_MediaStash_MyStash |
|
14 | Seerah-7 | goto end_of_file |
|
15 | Seerah-7 | ||
16 | Seerah-7 | :has_folder |
|
17 | Seerah-7 | echo Creating the file... |
|
18 | Seerah-7 | echo local LMP = LibStub("LibMediaProvider-1.0") > ..\LMP_MediaStash_MyStash\MyStash.lua |
|
19 | Seerah-7 | ||
20 | Seerah-7 | echo BACKGROUND |
|
21 | Seerah-7 | echo.>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
22 | Seerah-7 | echo -- ----- >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
23 | Seerah-7 | echo -- BACKGROUND >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
24 | Seerah-7 | echo -- ----- >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
25 | Seerah-7 | for %%F in (..\LMP_MediaStash_MyStash\background\*.*) do ( |
|
26 | Seerah-7 | echo %%~nF |
|
27 | Seerah-7 | echo LMP:Register("background", "%%~nF", [[LMP_MediaStash_MyStash\background\%%~nxF]]^) >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
28 | Seerah-7 | ) |
|
29 | Seerah-7 | ||
30 | Seerah-7 | echo BORDER |
|
31 | Seerah-7 | echo.>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
32 | Seerah-7 | echo -- ----- >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
33 | Seerah-7 | echo -- BORDER >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
34 | Seerah-7 | echo -- ---- >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
35 | Seerah-7 | for %%F in (..\LMP_MediaStash_MyStash\border\*.*) do ( |
|
36 | Seerah-7 | echo %%~nF |
|
37 | Seerah-7 | echo LMP:Register("border", "%%~nF", [[LMP_MediaStash_MyStash\border\%%~nxF]]^) >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
38 | Seerah-7 | ) |
|
39 | Seerah-7 | ||
40 | Seerah-7 | echo FONT |
|
41 | Seerah-7 | echo.>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
42 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
43 | Seerah-7 | echo -- FONT>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
44 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
45 | Seerah-7 | for %%F in (..\LMP_MediaStash_MyStash\font\*.ttf) do ( |
|
46 | Seerah-7 | echo %%~nF |
|
47 | Seerah-7 | echo LMP:Register("font", "%%~nF", [[LMP_MediaStash_MyStash\font\%%~nxF]]^) >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
48 | Seerah-7 | ) |
|
49 | Seerah-7 | ||
50 | Seerah-7 | echo SOUND |
|
51 | Seerah-7 | echo.>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
52 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
53 | Seerah-7 | echo -- SOUND>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
54 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
55 | Seerah-7 | for %%F in (..\LMP_MediaStash_MyStash\sound\*.*) do ( |
|
56 | Seerah-7 | echo %%~nF |
|
57 | Seerah-7 | echo LMP:Register("sound", "%%~nF", [[LMP_MediaStash_MyStash\sound\%%~nxF]]^) >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
58 | Seerah-7 | ) |
|
59 | Seerah-7 | ||
60 | Seerah-7 | echo STATUSBAR |
|
61 | Seerah-7 | echo.>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
62 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
63 | Seerah-7 | echo -- STATUSBAR>> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
64 | Seerah-7 | echo -- ----->> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
65 | Seerah-7 | for %%F in (..\LMP_MediaStash_MyStash\statusbar\*.*) do ( |
|
66 | Seerah-7 | echo %%~nF |
|
67 | Seerah-7 | echo LMP:Register("statusbar", "%%~nF", [[LMP_MediaStash_MyStash\statusbar\%%~nxF]]^) >> ..\LMP_MediaStash_MyStash\MyStash.lua |
|
68 | Seerah-7 | ) |
|
69 | Seerah-7 | ||
70 | Seerah-7 | :end_of_file |
|
71 | Seerah-7 | pause |