Skip to content

Commit

Permalink
- 1.0.7
Browse files Browse the repository at this point in the history
- added the version number at the evaluate, inspect and settings window
- update trade action still interested to be always shown for incoming requests
- update the market history to only show unique requests
- fixed an focus issue occurring when using the trade whisper button
- fixed an issue accessing the clipboard
- fixed an issue querying the map tier
  • Loading branch information
Kyusung4698 committed Jul 1, 2020
1 parent cbaee68 commit a51e00a
Show file tree
Hide file tree
Showing 51 changed files with 735 additions and 127 deletions.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ speed-measure-plugin*.json
!.vscode/extensions.json
.history/*

# IDE - VS
*.vs/
**/obj/
**/bin/

# release
/release

Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.0.7 (2020-07-01)

- added the version number at the evaluate, inspect and settings window
- update trade action still interested to be always shown for incoming requests
- update the market history to only show unique requests
- fixed an focus issue occurring when using the trade whisper button
- fixed an issue accessing the clipboard
- fixed an issue querying the map tier

## 1.0.6 (2020-06-25)

- added a history for the market search
Expand Down
10 changes: 9 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"meta": {
"name": "PoE Overlay",
"author": "Kyusung4698",
"version": "1.0.6",
"version": "1.0.7",
"minimum-overwolf-version": "0.147.0",
"description": "Search the market and send trade offers. Get current market values for your item. View insights for maps and items.",
"dock_button_title": "PoE Overlay",
Expand Down Expand Up @@ -146,6 +146,7 @@
"disable_rightclick": true,
"transparent": true,
"resizable": true,
"ignore_keyboard_events": true,
"size": {
"width": 310,
"height": 400
Expand All @@ -159,6 +160,7 @@
"disable_rightclick": true,
"transparent": true,
"resizable": true,
"ignore_keyboard_events": true,
"size": {
"width": 1212,
"height": 699
Expand Down Expand Up @@ -290,6 +292,12 @@
"enable_auto_refresh": true,
"reload_delay": 1000,
"filter": "dist/*.*"
},
"extra-objects": {
"clipboard-plugin": {
"file": "plugins/dist/clipboard.dll",
"class": "overwolf.plugins.clipboard"
}
}
}
}
115 changes: 113 additions & 2 deletions overlay.babel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<babeledit_project version="1.2" be_version="2.7.0">
<babeledit_project be_version="2.7.0" version="1.2">
<!--

BabelEdit project file
Expand Down Expand Up @@ -130,7 +130,7 @@
</children>
</folder_node>
<folder_node>
<name>changelog-1-0-6</name>
<name>changelog-1-0-7</name>
<children>
<concept_node>
<name>message</name>
Expand Down Expand Up @@ -8444,6 +8444,64 @@
</concept_node>
</children>
</folder_node>
<folder_node>
<name>footer</name>
<children>
<concept_node>
<name>support</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>ko-KR</language>
<approved>false</approved>
</translation>
<translation>
<language>pl-PL</language>
<approved>false</approved>
</translation>
<translation>
<language>pt-BR</language>
<approved>false</approved>
</translation>
<translation>
<language>ru-RU</language>
<approved>false</approved>
</translation>
<translation>
<language>th-TH</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHS</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHT</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
</children>
</folder_node>
<folder_node>
<name>help</name>
<children>
Expand Down Expand Up @@ -15341,6 +15399,59 @@
</concept_node>
</children>
</folder_node>
<concept_node>
<name>height</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>ko-KR</language>
<approved>false</approved>
</translation>
<translation>
<language>pl-PL</language>
<approved>false</approved>
</translation>
<translation>
<language>pt-BR</language>
<approved>false</approved>
</translation>
<translation>
<language>ru-RU</language>
<approved>false</approved>
</translation>
<translation>
<language>th-TH</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHS</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHT</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>layout</name>
<definition_loaded>false</definition_loaded>
Expand Down
2 changes: 2 additions & 0 deletions pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ fs.rmdirSync(dir, {
});
fs.mkdirSync(dir);
fs.mkdirSync(`${dir}/app`);
fs.mkdirSync(`${dir}/app/plugins`);
copyRecursiveSync('./store', `${dir}/store`)

fs.copyFileSync('./CHANGELOG.md', `${dir}/CHANGELOG.md`);
fs.copyFileSync('./manifest.json', `${dir}/app/manifest.json`);
copyRecursiveSync('./assets', `${dir}/app/assets`);
copyRecursiveSync('./dist', `${dir}/app/dist`);
copyRecursiveSync('./plugins/dist', `${dir}/app/plugins/dist`);

zipDirectory(dir, `./release/poe-overlay-overwolf ${manifest.meta.version}.zip`).then(() => {
fs.rmdirSync(dir, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poe-overlay-overwolf",
"version": "1.0.6",
"version": "1.0.7",
"scripts": {
"watch": "ng build --watch",
"watch:prod": "ng build --watch --prod",
Expand Down
Binary file added plugins/dist/clipboard.dll
Binary file not shown.
85 changes: 85 additions & 0 deletions plugins/src/clipboard/Clipboard.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace overwolf.plugins
{
public sealed class clipboard
{
public void placeOnClipboard(string content, Action<object> callback)
{
startSTATask(() =>
{
try
{
if (!string.IsNullOrWhiteSpace(content))
{
var obj = new DataObject();
obj.SetText(content);
Clipboard.SetDataObject(obj, true);
}
else
{
Clipboard.Clear();
}
callback(new
{
success = true
});
}
catch (Exception ex)
{
callback(new
{
success = false,
error = ex.ToString()
});
}
});
}

public void getFromClipboard(Action<object> callback)
{
startSTATask(() =>
{
try
{
var content = Clipboard.GetText();
callback(new
{
success = true,
content
});
}
catch (Exception ex)
{
callback(new
{
success = false,
error = ex.ToString()
});
}
});
}

private static void startSTATask(Action func)
{
var tcs = new TaskCompletionSource<object>();
var thread = new Thread(() =>
{
try
{
func();
tcs.SetResult(null);
}
catch (Exception e)
{
tcs.SetException(e);
}
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
}
}
}
Loading

0 comments on commit a51e00a

Please sign in to comment.