Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 7df8fab

Browse files
committed
Merge branch 'release/0142'
2 parents 06a2cab + 48ccdaf commit 7df8fab

22 files changed

Lines changed: 688 additions & 167 deletions

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 - 2015 Robert Machmer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# LoGiVi
2+
3+
LoGiVi the "lovely Git-Viewer" is a git-repository visualisation tool inspired by [Gource](https://code.google.com/p/gource/). It was written from scratch using [Lua](http://www.lua.org/) and the [LÖVE](https://love2d.org/) framework.
4+
5+
# Instructions
6+
LoGiVi can't read from a .git repository directly ([yet](https://github.com/rm-code/logivi/issues/3)). Instead you will have to create a git-log which needs to have a specific format. Please use this command to create the file:
7+
8+
```bash
9+
git log --reverse --numstat --pretty=format:"author: %an|%ae%ndate: %ct%n" --name-status --no-merges > log.txt
10+
```
11+
12+
This will create a log file in the same directory as the .git repository (If you want to write the log to a different location add its path after the '>' in the command above).
13+
14+
When you run LoGiVi for the first time it will automatically open the folder in which you need to place the log. Depending on your operating system this can be one of the following locations:
15+
16+
- Windows XP: C:\Documents and Settings\user\Application Data\LOVE\rmcode_logivi
17+
- Windows Vista and 7: C:\Users\user\AppData\Roaming\LOVE\rmcode_logivi
18+
- Linux: $XDG_DATA_HOME/love/ or ~/.local/share/love/rmcode_logivi
19+
- Mac: /Users/user/Library/Application Support/LOVE/rmcode_logivi
20+
21+
For more information about the filesystem check the [LÖVE wiki](https://love2d.org/wiki/love.filesystem).
22+
23+
As soon as the file is in the correct folder you can start LoGiVi and watch as it creates a visual representation of your git repository.
24+
25+
Check the [wiki](https://github.com/rm-code/logivi/wiki) for instructions and further information.
26+
27+
# License
28+
29+
The MIT License (MIT)
30+
31+
Copyright (c) 2014 - 2015 Robert Machmer
32+
33+
Permission is hereby granted, free of charge, to any person obtaining a copy
34+
of this software and associated documentation files (the "Software"), to deal
35+
in the Software without restriction, including without limitation the rights
36+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37+
copies of the Software, and to permit persons to whom the Software is
38+
furnished to do so, subject to the following conditions:
39+
40+
The above copyright notice and this permission notice shall be included in all
41+
copies or substantial portions of the Software.
42+
43+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49+
SOFTWARE.

Readme.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

conf.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ local GAME_TITLE = "LoGiVi";
2424

2525
local LOVE_VERSION = "0.9.2";
2626

27-
local GAME_VERSION = "0104";
27+
local GAME_VERSION = "0142";
2828

2929
-- ------------------------------------------------
3030
-- Local variables
@@ -60,6 +60,8 @@ function love.conf(t)
6060
t.window.display = 1;
6161
t.window.highdpi = false;
6262
t.window.srgb = false;
63+
t.window.x = nil;
64+
t.window.y = nil;
6365

6466
t.modules.audio = true;
6567
t.modules.event = true;

lib/screenmanager/Screen.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function Screen.new()
6161

6262
function self:mousefocus(focus) end
6363

64+
function self:mousemoved(x, y, dx, dy) end
65+
6466
function self:quit(dquit) end
6567

6668
function self:isActive()

lib/screenmanager/ScreenManager.lua

100755100644
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
--===============================================================================--
2222

2323
local ScreenManager = {
24-
_VERSION = '1.2.1',
24+
_VERSION = '1.3.1',
2525
_DESCRIPTION = 'Screen/State Management for the LÖVE framework',
26-
_URL = 'https://bitbucket.org/rmcode/screenmanager/',
26+
_URL = 'https://github.com/rm-code/screenmanager/',
2727
};
2828

2929
-- ------------------------------------------------
@@ -234,6 +234,17 @@ function ScreenManager.mousefocus(focus)
234234
ScreenManager.peek():mousefocus(focus);
235235
end
236236

237+
---
238+
-- Callback function triggered when the mouse is moved.
239+
-- @param x - Mouse x position.
240+
-- @param y - Mouse y position.
241+
-- @param dx - The amount moved along the x-axis since the last time love.mousemoved was called.
242+
-- @param dy - The amount moved along the y-axis since the last time love.mousemoved was called.
243+
--
244+
function ScreenManager.mousemoved(x, y, dx, dy)
245+
ScreenManager.peek():mousemoved(x, y, dx, dy);
246+
end
247+
237248
---
238249
-- Reroute the quit callback to the currently active screen.
239250
-- @param dquit

main.lua

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
-- THE SOFTWARE. =
2121
--==================================================================================================
2222

23-
local ScreenManager = require('lib/screenmanager/ScreenManager');
23+
local ScreenManager = require('lib.screenmanager.ScreenManager');
2424

2525
-- ------------------------------------------------
2626
-- Local Variables
@@ -88,7 +88,7 @@ function love.load()
8888
print("===================")
8989

9090
local screens = {
91-
main = require('src/screens/MainScreen');
91+
main = require('src.screens.MainScreen');
9292
};
9393

9494
ScreenManager.init(screens, 'main');
@@ -114,4 +114,18 @@ function love.keypressed(key)
114114
if key == 'f1' then
115115
showDebug = not showDebug;
116116
end
117+
118+
ScreenManager.keypressed(key);
119+
end
120+
121+
function love.mousepressed(x, y, b)
122+
ScreenManager.mousepressed(x, y, b);
123+
end
124+
125+
function love.mousereleased(x, y, b)
126+
ScreenManager.mousereleased(x, y, b);
127+
end
128+
129+
function love.mousemoved(x, y, dx, dy)
130+
ScreenManager.mousemoved(x, y, dx, dy);
117131
end
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
2+
3+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
5+
6+
-----------------------------------------------------------
7+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8+
-----------------------------------------------------------
9+
10+
PREAMBLE
11+
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
12+
13+
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
14+
15+
DEFINITIONS
16+
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
17+
18+
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
19+
20+
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
21+
22+
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
23+
24+
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
25+
26+
PERMISSION & CONDITIONS
27+
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
28+
29+
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
30+
31+
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
32+
33+
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
34+
35+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
36+
37+
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
38+
39+
TERMINATION
40+
This license becomes null and void if any of the above conditions are not met.
41+
42+
DISCLAIMER
43+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

res/fonts/SourceCodePro-Medium.otf

87.5 KB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)