Giter VIP home page Giter VIP logo

Comments (9)

diwako avatar diwako commented on May 31, 2024 1

Pushed to Dev workshop item for preview @Drofseh

from diwako_dui.

diwako avatar diwako commented on May 31, 2024

Hmm would require a rewrite for the player icon rendering part. Right now it is rendered simply as another unit tracked on the radar.

Not sure to be honest.

from diwako_dui.

Drofseh avatar Drofseh commented on May 31, 2024

I think you could get away with having this check done sooner
https://github.com/diwako/diwako_dui/blob/master/addons/radar/functions/fnc_cacheLoop.sqf#L42

and then adding this

if ((_specialTrack  != []) && (_group == []) then {
    _group = [_player];
};

inside this check
https://github.com/diwako/diwako_dui/blob/master/addons/radar/functions/fnc_cacheLoop.sqf#L16-L18

which would give

private _player = [] call CBA_fnc_currentUnit;
private _group = units group _player;
private _specialTrack = missionNamespace getVariable ["diwako_dui_special_track", []];
if (diwako_dui_compass_hide_blip_alone_group && {(count _group) <= 1}) then {
    _group = [];
    if ((_specialTrack  != []) && (_group == []) then {
        _group = [_player];
    };
};

from diwako_dui.

Drofseh avatar Drofseh commented on May 31, 2024

Any more thoughts on this @diwako ?

from diwako_dui.

diwako avatar diwako commented on May 31, 2024

I haven't gotten around looking into it too much, life is busy atm. However vacation is coming up and that means I should have some free time to actually start into looking things.

from diwako_dui.

diwako avatar diwako commented on May 31, 2024

@Drofseh gave it some thoughts and here we go
Result:
https://streamable.com/a87ym

611768d

from diwako_dui.

Drofseh avatar Drofseh commented on May 31, 2024

Yah that works for me, thanks

from diwako_dui.

diwako avatar diwako commented on May 31, 2024

Gonna reopen this as a reminder for my self, I need to add one more condition check or else people end up rendering your own icon twice, which is not wanted obviously:

Check for group size as well

from diwako_dui.

diwako avatar diwako commented on May 31, 2024

Fixed with 5470427 . again, pushed for preview to dev workshop item

from diwako_dui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.