Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 2 new element specific attributes: tintIndex (already supported…
… by the engine) and renderPass (not yet supported by the engine)
- Loading branch information
Showing
11 changed files
with
165 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
$subcounts = array(); | ||
$totallines = countLines("src/at/vintagestory", array(""), array("Mat4f.java")); | ||
$subcounts = array_reverse($subcounts); | ||
|
||
foreach ($subcounts as $subcount) { | ||
echo $subcount; | ||
} | ||
|
||
echo "\r\nTotal lines: " . number_format($totallines); | ||
|
||
|
||
|
||
|
||
function countLines($folder, $excludefoldernames, $excludefilenames, $depth = 0) { | ||
global $subcounts; | ||
|
||
$lines = 0; | ||
|
||
$dir = opendir($folder); | ||
while ($file = readdir($dir)) { | ||
|
||
if (preg_match("#\.java$#", $file) && !in_array($file, $excludefilenames)) { | ||
$lines += count(file($folder . '/' . $file)); | ||
} | ||
if (is_dir($folder . '/' . $file) && $file != '.' && $file != '..' && !in_array($file, $excludefoldernames)) { | ||
$linesOfDir = countLines($folder . '/' . $file, $excludefoldernames, $excludefilenames, $depth + 1); | ||
if ($depth < 3 && $linesOfDir > 0) { | ||
$prefix = pad($depth) . $file; | ||
$subcounts[] = $prefix . pad(15 - strlen($prefix)/2) . number_format($linesOfDir ) . "\r\n"; | ||
} | ||
$lines += $linesOfDir ; | ||
} | ||
} | ||
return $lines; | ||
} | ||
|
||
function pad($depth) { | ||
if ($depth <= 0) return ""; | ||
return str_repeat(" ", $depth); | ||
} |
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 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
49 changes: 0 additions & 49 deletions
49
src/at/vintagestory/modelcreator/gui/right/element/ModelPropertiesPanel.java
This file was deleted.
Oops, something went wrong.
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