This repository was archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data restructuring and add preload error screen
- Loading branch information
1 parent
1799a38
commit 720db7c
Showing
21 changed files
with
319 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,6 @@ dkms.conf | |
d2*.mpq | ||
*_d2.mpq | ||
mpqs/extracted/ | ||
DATA/MPQ-D2/extracted/ | ||
tags | ||
/.disable* |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
patch_d2.mpq,d2exp.mpq,d2xmusic.mpq,d2xtalk.mpq,d2xvideo.mpq,d2data.mpq,d2char.mpq,d2music.mpq,d2sfx.mpq,d2video.mpq,d2speech.mpq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Place the *d2*.mpq files in the MPQ-D2 folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local Label = {} | ||
local Node = require("common/interface/node") | ||
Label.__index = Label | ||
|
||
|
||
function Label:new(data) | ||
local this = Node:new(data) | ||
function this:setAlignment(alignment) | ||
alignment = alignment or {"start", "start"} | ||
self.node:setAlignment(alignment[1],alignment[2]) | ||
end | ||
local parent = data.parent | ||
local font = data.font | ||
local caption = data.caption | ||
local alignment = data.alignment | ||
local position = data.position | ||
this.node = abyss.createLabel(font) | ||
this:setPosition{position[1], position[2]} | ||
this.node.caption = caption | ||
this:setAlignment{alignment[1], alignment[2]} | ||
table.insert(parent.data, this.node) | ||
parent:appendChild(this.node) | ||
setmetatable(Label, Label) | ||
return this | ||
end | ||
|
||
return Label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
local Node = {} | ||
Node.__index = Node | ||
|
||
function Node:new(data) | ||
local this = {} | ||
function Node:setPosition(position) | ||
position = position or {0, 0} | ||
this.node:setPosition( math.floor(position[1]), math.floor(position[2]) ) | ||
end | ||
if data.node ~= nil and type(data.node) == "userdata" then | ||
this.node = data.node | ||
return this | ||
end | ||
setmetatable(this, self) | ||
return this | ||
end | ||
|
||
return Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.